/* ── Auth page: clean, professional dark design, accented with the logo's colors ── */

.auth-page {
  position: relative;
  --auth-cyan: #22c3dc;
  --auth-cyan-soft: #6fe3f2;
  --auth-purple: #8b5cf6;
  --auth-purple-soft: #b794f6;
  background: #08080d;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(34, 195, 220, .14), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(139, 92, 246, .14), transparent 42%);
}

/* ── Card: quiet, static, well-lit glass with a cyan-to-purple accent line ── */
.auth-card {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(20, 22, 32, .82), rgba(9, 10, 16, .92));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .55),
    0 0 50px rgba(139, 92, 246, .06);
  opacity: 0;
  animation: card-fade-in .5s ease forwards;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--auth-cyan), var(--auth-purple), transparent);
  opacity: .55;
}
@keyframes card-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.auth-logo .brand-mark {
  width: 56px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, .3));
}
.auth-logo h1 {
  letter-spacing: .01em;
}
.auth-logo .brand-lite {
  background: linear-gradient(90deg, var(--auth-cyan-soft), var(--auth-purple-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-logo p {
  letter-spacing: .02em;
  font-size: .78rem;
  opacity: .6;
}

/* Inputs: understated, luminous focus ring in the brand colors */
.auth-form .form-group input {
  transition: border-color .2s ease, box-shadow .2s ease;
  background: rgba(255, 255, 255, .03);
}
.auth-form .form-group input:focus {
  border-color: var(--auth-cyan);
  box-shadow: 0 0 0 4px rgba(34, 195, 220, .14);
  outline: none;
}
.auth-form .form-group:focus-within label { color: var(--auth-cyan-soft); }
.auth-form .form-group label {
  display: inline-block;
  transition: color .2s ease;
  letter-spacing: .03em;
}

/* Submit button: gradient matching the logo, plain functional loading state */
.auth-form .btn-primary {
  background: linear-gradient(90deg, var(--auth-cyan), var(--auth-purple));
  border: none;
  transition: box-shadow .2s ease, filter .2s ease;
}
.auth-form .btn-primary:hover {
  box-shadow: 0 10px 28px rgba(139, 92, 246, .35);
  filter: brightness(1.06);
}
.auth-form .btn-primary.is-loading .btn-label { display: none; }
.auth-form .btn-primary.is-loading .btn-loading-text { display: inline; }
.auth-form .btn-primary .btn-loading-text { display: none; }
.auth-form .btn-primary.is-loading { pointer-events: none; opacity: .85; }

@media (prefers-reduced-motion: reduce) {
  .auth-card { animation: none; opacity: 1; }
}
