/* VioKart Super — premium OTP login (hub-matched chrome) */
.auth-page {
  min-height: 100vh;
  background: var(--canvas);
}

.auth-stage {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 2.5rem 1rem 3.5rem;
  background: var(--canvas);
}

.auth-stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-stage .ld-orb {
  z-index: 1;
  opacity: 0.55;
}

.auth-spark {
  position: absolute;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fdcf00;
  box-shadow: 0 0 18px 6px rgba(253, 207, 0, 0.45);
  animation: auth-spark 7s ease-in-out infinite;
}

.auth-spark-a { left: 14%; top: 22%; }
.auth-spark-b { right: 18%; top: 32%; animation-delay: -2.4s; background: #0295d8; box-shadow: 0 0 18px 6px rgba(2, 149, 216, 0.4); }
.auth-spark-c { left: 28%; bottom: 18%; animation-delay: -4.2s; }

.auth-float {
  z-index: 2;
}

.auth-stage .float-a { top: 16%; left: 4%; }
.auth-stage .float-b { top: 22%; right: 4%; left: auto; }
.auth-stage .float-c { bottom: 14%; left: 6%; }

.auth-stage-inner {
  position: relative;
  z-index: 3;
  width: min(460px, 100%);
}

.auth-glass {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.85rem 1.75rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.94) 0%, rgba(247, 245, 240, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 24px 50px rgba(10, 17, 40, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
}

.auth-glass-shine {
  position: absolute;
  inset: auto -20% 55% -20%;
  height: 180px;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(-8deg);
  pointer-events: none;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.auth-kicker i {
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-yellow), var(--brand-cyan));
  border-radius: 2px;
}

.auth-glass h1 {
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
  margin: 0 0 0.55rem;
}

.auth-sub {
  margin: 0 0 1.45rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 500;
}

.auth-label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7787;
}

.auth-label em {
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #9aa5b3;
}

.auth-phone {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  height: 56px;
  padding: 0 0.9rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(10, 17, 40, 0.1);
  box-shadow: 0 10px 24px rgba(10, 17, 40, 0.04);
  margin-bottom: 1.1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-phone:focus-within {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 4px rgba(2, 149, 216, 0.12);
}

.auth-phone-cc {
  font-weight: 800;
  color: var(--navy);
  padding-right: 0.65rem;
  border-right: 1px solid #ece7dc;
}

.auth-phone input,
.auth-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.auth-input {
  height: 56px;
  padding: 0 0.95rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(10, 17, 40, 0.1);
  box-shadow: 0 10px 24px rgba(10, 17, 40, 0.04);
  margin-bottom: 1.05rem;
  letter-spacing: 0;
}

.auth-input:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 4px rgba(2, 149, 216, 0.12);
}

.auth-google {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 16px;
  border: 1px solid rgba(10, 17, 40, 0.12);
  background: #fff;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(10, 17, 40, 0.04);
}

.auth-google:hover {
  border-color: var(--brand-cyan);
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 1.05rem;
  color: #9aa5b3;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(10, 17, 40, 0.1);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.3rem;
  margin: 0 0 1.05rem;
  border-radius: 14px;
  background: rgba(10, 17, 40, 0.05);
}

.auth-tab {
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #6b7787;
  font-weight: 800;
  font-size: 0.84rem;
}

.auth-tab.is-on {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 6px 16px rgba(10, 17, 40, 0.08);
}

.auth-recaptcha {
  display: flex;
  justify-content: center;
  margin: 0 0 0.9rem;
}

.auth-submit {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 16px 32px rgba(10, 17, 40, 0.22);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit .material-icons {
  font-size: 18px;
}

.auth-submit:hover {
  background: var(--brand-blue);
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(25, 95, 191, 0.28);
}

.auth-submit:disabled,
.auth-google:disabled,
.auth-tab:disabled {
  opacity: 0.65;
  pointer-events: none;
}

.auth-submit .material-icons {
  font-size: 18px;
}

.auth-submit:hover {
  background: var(--brand-blue);
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(25, 95, 191, 0.28);
}

.auth-ghost {
  width: 100%;
  margin-top: 0.7rem;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
}

.auth-ghost:hover {
  color: var(--navy);
}

.auth-otp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.auth-otp-box {
  height: 58px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  border-radius: 14px;
  border: 1px solid rgba(10, 17, 40, 0.12);
  background: #fff;
  outline: 0;
  caret-color: var(--brand-blue);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.auth-otp-box:focus {
  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 4px rgba(253, 207, 0, 0.22);
  transform: translateY(-1px);
}

.auth-otp-hint {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(253, 207, 0, 0.18), rgba(2, 149, 216, 0.12));
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 800;
}

.auth-alert {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  padding: 0 1rem 1.5rem;
  margin: -1.5rem 0 0;
  position: relative;
  z-index: 2;
}

.auth-legal-links a {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-legal-links a:hover {
  color: #e23744;
}

@keyframes auth-spark {
  0%, 100% { opacity: 0.25; transform: translateY(0) scale(0.8); }
  50% { opacity: 1; transform: translateY(-10px) scale(1.15); }
}

@media (max-width: 1100px) {
  .auth-float { display: none; }
}

@media (max-width: 640px) {
  .auth-glass { padding: 1.5rem 1.15rem 1.35rem; border-radius: 22px; }
  .auth-otp { gap: 0.35rem; }
  .auth-otp-box { height: 48px; font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-spark,
  .auth-stage .ld-orb { animation: none; }
}
