/* AhlasPhone Marketing — Premium Tech Theme */
:root {
  --cyan: #00d4ff;
  --violet: #7c3aed;
  --gold: #ffd60a;
  --teal: #22d3ee;
  --bg-0: #030508;
  --bg-1: #0a0c14;
  --bg-2: #0f111a;
  --glass: rgba(12, 14, 22, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #f4f6fb;
  --text-dim: rgba(244, 246, 251, 0.58);
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Code', monospace;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  --glow-cyan: 0 0 60px rgba(0, 212, 255, 0.25);
  --glow-gold: 0 0 80px rgba(255, 214, 10, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* —— Background layers —— */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 120% 80% at 50% -15%, rgba(255, 214, 10, 0.14), transparent 52%),
    radial-gradient(ellipse 70% 55% at 95% 85%, rgba(0, 212, 255, 0.12), transparent 48%),
    radial-gradient(ellipse 55% 45% at 5% 75%, rgba(124, 58, 237, 0.18), transparent 45%),
    linear-gradient(155deg, var(--bg-0) 0%, var(--bg-1) 38%, var(--bg-2) 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 10%, transparent 75%);
  animation: gridPulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.75;
  }
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  animation: orbFloat 8s ease-in-out infinite;
}

.bg-orb--1 {
  width: 420px;
  height: 420px;
  background: rgba(255, 214, 10, 0.16);
  top: -8%;
  left: -5%;
}

.bg-orb--2 {
  width: 360px;
  height: 360px;
  background: rgba(0, 212, 255, 0.14);
  bottom: -10%;
  right: -5%;
  animation-delay: -3s;
}

.bg-orb--3 {
  width: 280px;
  height: 280px;
  background: rgba(124, 58, 237, 0.2);
  top: 40%;
  right: 20%;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(18px, -24px) scale(1.05);
  }
}

/* —— Nav —— */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-nav.is-scrolled {
  background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  background: linear-gradient(145deg, #141820, #0a0c12);
  border: 1px solid rgba(255, 214, 10, 0.35);
  box-shadow: var(--glow-gold);
  position: relative;
}

.brand__mark::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: conic-gradient(from 180deg, var(--gold), var(--cyan), var(--violet), var(--gold));
  z-index: -1;
  opacity: 0.5;
  animation: spin 5s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.brand__text span {
  background: linear-gradient(95deg, #fff 0%, var(--gold) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn--ghost:hover {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.06);
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, #ffca28 100%);
  color: #0a0c12;
  box-shadow: 0 8px 32px rgba(255, 214, 10, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 12px 40px rgba(255, 214, 10, 0.45);
  transform: translateY(-1px);
}

.btn--cyan {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 100%);
  color: #030508;
  box-shadow: var(--glow-cyan);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

/* —— Hero —— */
.hero {
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.5);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 8px rgba(0, 212, 255, 0);
  }
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(95deg, var(--gold) 0%, var(--cyan) 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.12rem;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.stat__val {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(95deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__lbl {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.hero__visual {
  position: relative;
}

.hero-canvas-wrap {
  position: absolute;
  inset: -20px;
  z-index: 0;
  opacity: 0.6;
}

#hero-canvas {
  width: 100%;
  height: 100%;
}

.glass-panel {
  position: relative;
  z-index: 1;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(28px);
  box-shadow: var(--shadow), var(--glow-gold);
  overflow: hidden;
}

.glass-panel__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot--r {
  background: #ff5f57;
}
.dot--y {
  background: #febc2e;
}
.dot--g {
  background: #28c840;
}

.glass-panel__title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal {
  padding: 20px 22px 24px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  min-height: 220px;
}

.term-line {
  color: rgba(244, 246, 251, 0.75);
}

.term-line--active {
  color: var(--cyan);
}

.term-cursor {
  animation: blink 1s step-end infinite;
  color: var(--gold);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* —— Sections —— */
.section {
  padding: 100px 0;
}

.section__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section__desc {
  color: var(--text-dim);
  max-width: 560px;
  font-size: 1.05rem;
}

.section__head {
  text-align: center;
  margin-bottom: 56px;
}

.section__head .section__desc {
  margin: 0 auto;
}

/* —— Features —— */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: var(--glow-cyan);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* —— Pricing —— */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.price-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}

.price-card--featured {
  border-color: rgba(255, 214, 10, 0.45);
  background: linear-gradient(160deg, rgba(255, 214, 10, 0.08), var(--glass));
  box-shadow: var(--glow-gold);
  transform: scale(1.03);
}

.price-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.price-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.price-card__amt {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.price-card__amt small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
}

.price-card__list {
  list-style: none;
  margin: 24px 0;
  flex: 1;
}

.price-card__list li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-card__list li::before {
  content: '✓';
  color: var(--cyan);
  font-weight: 700;
}

/* —— CTA band —— */
.cta-band {
  margin: 0 auto;
  max-width: 960px;
  padding: 48px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.12));
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: var(--glow-cyan);
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--text-dim);
  margin-bottom: 28px;
}

/* —— Footer —— */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--glass-border);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid p,
.footer-grid a {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-grid a:hover {
  color: var(--cyan);
}

.footer-grid h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-dim);
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

/* —— Register page —— */
.page-register {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.register-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.register-info h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.register-info h1 em {
  font-style: normal;
  color: var(--cyan);
}

.register-info p {
  color: var(--text-dim);
  margin-bottom: 24px;
}

.register-perks {
  list-style: none;
}

.register-perks li {
  padding: 10px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.register-perks li::before {
  content: '→';
  color: var(--gold);
  font-weight: 700;
}

.register-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(28px);
  box-shadow: var(--shadow);
}

.step-dots {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.step-dot {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
}

.step-dot.active {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.step-dot.done {
  background: var(--cyan);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dim);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.form-actions .btn {
  flex: 1;
}

.reg-toast {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.reg-toast--error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.reg-toast--success {
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--teal);
}

.reg-toast--info {
  background: rgba(255, 214, 10, 0.1);
  border: 1px solid rgba(255, 214, 10, 0.3);
  color: var(--gold);
}

.dev-hint {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px dashed rgba(124, 58, 237, 0.4);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #c4b5fd;
}

.success-box {
  text-align: center;
  padding: 20px 0;
}

.success-box__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(0, 212, 255, 0.15));
  border: 1px solid rgba(0, 212, 255, 0.4);
}

.success-box h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.success-box p {
  color: var(--text-dim);
  margin-bottom: 20px;
}

.credential-pill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  font-family: var(--mono);
  font-size: 0.9rem;
  margin: 4px;
  border: 1px solid var(--glass-border);
}

/* —— Reveal animation —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal][data-delay='1'] {
  transition-delay: 0.1s;
}
[data-reveal][data-delay='2'] {
  transition-delay: 0.2s;
}
[data-reveal][data-delay='3'] {
  transition-delay: 0.3s;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .hero__grid,
  .register-wrap {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .price-card--featured {
    transform: none;
  }

  .nav-links,
  .nav-actions .btn--ghost {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(3, 5, 8, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    z-index: 99;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .mobile-nav a {
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--glass-border);
  }
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    gap: 20px;
  }
}

/* —— Auth pages —— */
.auth-page {
  min-height: 100vh;
}

.nav-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 214, 10, 0.12);
  border: 1px solid rgba(255, 214, 10, 0.35);
  color: var(--gold);
}

.auth-layout {
  padding: 110px 0 60px;
  min-height: 100vh;
}

/* Auth pages: content always visible (no scroll observer required) */
.auth-page [data-reveal] {
  opacity: 1;
  transform: none;
}

.auth-layout--center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-layout--center .container {
  width: 100%;
}

.auth-layout__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.auth-layout__single {
  max-width: 460px;
  margin: 0 auto;
}

.auth-aside h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.auth-aside h1 em {
  font-style: normal;
  background: linear-gradient(95deg, var(--gold), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-aside__lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 460px;
}

.auth-trust-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.auth-trust-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.auth-trust-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}

.auth-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: rgba(8, 10, 16, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(32px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-card--narrow {
  padding: 40px 36px;
}

.auth-card__head {
  margin-bottom: 24px;
}

.auth-card__head--center {
  text-align: center;
}

.auth-card__head h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-card__head p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.auth-card__head a {
  color: var(--cyan);
  font-weight: 600;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  margin-bottom: 24px;
}

.auth-tab {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-tab.active {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(124, 58, 237, 0.15));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.25);
}

.auth-oauth-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.auth-oauth-slot {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.auth-oauth-hint {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.btn--block {
  width: 100%;
}

.btn--apple {
  background: #fff;
  color: #111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.btn--apple:hover:not(:disabled) {
  background: #f5f5f5;
  transform: translateY(-1px);
}

.btn--apple:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--google {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  gap: 10px;
}

.btn--google:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.auth-legal {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 16px;
}

.auth-legal--center {
  text-align: center;
  margin-top: 24px;
}

.auth-legal a {
  color: var(--cyan);
}

.auth-toast {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
}

.auth-toast--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.auth-toast--success {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--teal);
}

.auth-toast--info {
  background: rgba(255, 214, 10, 0.08);
  border: 1px solid rgba(255, 214, 10, 0.28);
  color: var(--gold);
}

.input-otp {
  letter-spacing: 0.35em;
  text-align: center;
  font-family: var(--mono);
  font-size: 1.25rem !important;
}

.step-dots--compact {
  margin-bottom: 20px;
}

.credential-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 16px 0 20px;
}

@media (max-width: 960px) {
  .auth-layout__grid {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    text-align: center;
  }

  .auth-aside__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .auth-trust-list {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}
