.login-page {
  background:
    radial-gradient(circle at 50% 42%, rgba(37, 99, 235, 0.11), transparent 38%),
    radial-gradient(circle at 10% 85%, rgba(14, 165, 233, 0.05), transparent 25%),
    linear-gradient(145deg, #050816 0%, #070a18 55%, #050816 100%);
}

.login-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.login-shell {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.025),
    0 34px 90px -38px rgba(0, 0, 0, 0.9),
    0 24px 70px -45px rgba(37, 99, 235, 0.8);
  animation: login-shell-enter 420ms ease-out both;
}

.brand-mark {
  box-shadow: 0 12px 28px -14px rgba(37, 99, 235, 0.75);
}

.visual-panel {
  background:
    radial-gradient(circle at 50% 34%, rgba(56, 189, 248, 0.08), transparent 35%),
    linear-gradient(145deg, #080e20 0%, #070d20 50%, #050816 100%);
}

.institutional-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgba(8, 15, 35, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.11);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.34),
    0 8px 20px rgba(2, 6, 23, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.institutional-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.065), transparent 42%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025), transparent 35%);
}

.login-input {
  min-height: 46px;
  caret-color: #38bdf8;
}

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus,
.login-input:-webkit-autofill:active {
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc;
  -webkit-box-shadow: 0 0 0 1000px #10162b inset !important;
  box-shadow: 0 0 0 1000px #10162b inset !important;
  border-color: rgba(148, 163, 184, 0.22);
  transition: background-color 9999s ease-out 0s;
}

@keyframes login-shell-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .login-shell {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-shell {
    animation: none;
  }

  .login-submit,
  .login-input,
  a {
    transition-duration: 0.01ms !important;
  }
}
