/* Norton-Gauss · Support OTP sign-in
   ───────────────────────────────────────────────────────────── */

.auth {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}

/* ── Split hero layout: Three.js mesh panel | auth card ──────── */
.auth.auth--hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  padding: 0;
}

.auth-hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px 64px 64px;
  border-right: 1px solid var(--ng-line);
  background:
    radial-gradient(80% 60% at 38% 30%, rgba(45, 67, 68, 0.4), transparent 72%),
    linear-gradient(180deg, rgba(7, 10, 9, 0.2), rgba(7, 10, 9, 0.55));
}
.auth-hero-mesh { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.auth-hero-mesh canvas {
  width: 100%; height: 100%; display: block;
  -webkit-mask: radial-gradient(ellipse 72% 72% at 50% 42%, #000 32%, transparent 90%);
          mask: radial-gradient(ellipse 72% 72% at 50% 42%, #000 32%, transparent 90%);
}
.auth-hero-halo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(46% 40% at 50% 40%, rgba(217, 255, 53, 0.10), transparent 70%);
}
.auth-hero-copy { position: relative; z-index: 1; max-width: 460px; }
.auth-hero-brand {
  display: inline-flex; align-items: center; gap: 11px; margin-bottom: 40px;
  text-decoration: none;
}
.auth-hero-brand img { width: 30px; height: 30px; }
.auth-hero-brand span { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--ng-ink); }
.auth-hero-h {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 3.2vw, 48px); line-height: 1.04; letter-spacing: -0.022em;
  color: var(--ng-ink); text-wrap: balance;
}
.auth-hero-h em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--ng-lime-ink); }
.auth-hero-p {
  font-size: 16px; line-height: 1.6; color: var(--ng-ink-mute);
  margin-top: 22px; max-width: 42ch;
}
.auth-hero-meta {
  display: flex; flex-direction: column; gap: 12px; margin-top: 34px;
}
.auth-hero-meta span {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ng-ink-dim);
}
.auth-hero-meta i {
  width: 7px; height: 7px; border-radius: 999px; background: var(--ng-lime);
  box-shadow: 0 0 10px 1px rgba(217, 255, 53, 0.7); flex-shrink: 0;
}

.auth-shell {
  position: relative; z-index: 1;
  width: 100%; max-width: 452px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.auth--hero .auth-shell {
  justify-self: center; align-self: center;
  padding: 120px 40px 64px;
}

.auth-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(20, 28, 25, 0.78), rgba(11, 16, 14, 0.82));
  border: 1px solid var(--ng-line-strong);
  border-radius: 22px;
  padding: 40px 40px 34px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Brand lockup */
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 30px; }
.auth-brand img { width: 30px; height: 30px; }
.auth-wm { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--ng-ink); }

.auth-body { display: flex; flex-direction: column; }

.auth-eyebrow {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ng-lime-ink); margin-bottom: 14px;
}
.auth-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 30px; line-height: 1.04; letter-spacing: -0.02em; color: var(--ng-ink);
}
.auth-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--ng-lime-ink); }
.auth-sub {
  font-size: 14.5px; line-height: 1.55; color: var(--ng-ink-mute);
  margin-top: 14px; margin-bottom: 26px;
}
.auth-sub strong { color: var(--ng-ink); font-weight: 500; }

/* Email field */
.auth-field { display: flex; flex-direction: column; gap: 9px; }
.auth-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ng-ink-dim);
}
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-ico {
  position: absolute; left: 15px; display: flex; color: var(--ng-ink-dim); pointer-events: none;
}
.auth-input-wrap input {
  width: 100%; height: 50px;
  padding: 0 16px 0 44px;
  background: rgba(7, 10, 9, 0.6);
  border: 1px solid var(--ng-line);
  border-radius: 12px;
  color: var(--ng-ink); font-size: 15px; font-family: var(--font-display);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.auth-input-wrap input::placeholder { color: var(--ng-ink-dim); }
.auth-input-wrap input:focus {
  outline: none; border-color: rgba(217, 255, 53, 0.55);
  background: rgba(7, 10, 9, 0.85);
  box-shadow: 0 0 0 4px rgba(217, 255, 53, 0.10);
}
.auth-input-wrap:focus-within .auth-input-ico { color: var(--ng-lime-ink); }

/* OTP boxes */
.auth-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.auth-otp-box {
  height: 60px; width: 100%; text-align: center;
  background: rgba(7, 10, 9, 0.6);
  border: 1px solid var(--ng-line);
  border-radius: 12px;
  color: var(--ng-ink);
  font-family: var(--font-display); font-weight: 500; font-size: 26px;
  letter-spacing: 0; transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
}
.auth-otp-box.is-filled { border-color: var(--ng-line-strong); background: rgba(13, 19, 17, 0.9); }
.auth-otp-box:focus {
  outline: none; border-color: rgba(217, 255, 53, 0.6);
  background: rgba(7, 10, 9, 0.9);
  box-shadow: 0 0 0 4px rgba(217, 255, 53, 0.12);
}

/* Primary button */
.auth-btn {
  margin-top: 26px; height: 50px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ng-lime); color: var(--ng-on-lime, #08110F);
  border: 0; border-radius: 12px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px; letter-spacing: 0.01em;
  transition: background 0.16s, transform 0.12s, box-shadow 0.2s;
}
.auth-btn:hover:not(:disabled) { background: var(--ng-lime-soft, #E8FF7A); box-shadow: 0 0 26px -4px rgba(217, 255, 53, 0.5); }
.auth-btn:active:not(:disabled) { transform: scale(0.985); background: var(--ng-lime-deep, #B4D816); }
.auth-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Helper notes */
.auth-note {
  display: flex; align-items: center; gap: 8px; margin-top: 18px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ng-ink-dim);
}
.auth-note svg { color: var(--ng-lime-ink); flex-shrink: 0; }

.auth-error {
  margin-top: 16px; padding: 11px 14px; border-radius: 10px;
  background: rgba(255, 90, 70, 0.10); border: 1px solid rgba(255, 90, 70, 0.3);
  color: #ff9d8f; font-size: 13px; line-height: 1.4;
}

.auth-back {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px;
  background: none; border: 0; cursor: pointer; padding: 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ng-ink-dim);
  transition: color 0.16s;
}
.auth-back:hover { color: var(--ng-ink); }

.auth-resend { margin-top: 18px; text-align: center; }
.auth-resend-wait { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--ng-ink-dim); }
.auth-resend-btn {
  background: none; border: 0; cursor: pointer; padding: 0;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--ng-lime-ink); text-decoration: underline; text-underline-offset: 3px;
}
.auth-resend-btn:hover { color: var(--ng-lime, #D9FF35); }

/* Verified state */
.auth-done { align-items: center; text-align: center; }
.auth-done .auth-title, .auth-done .auth-sub { text-align: center; }
.auth-check {
  width: 64px; height: 64px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ng-on-lime, #08110F); background: var(--ng-lime);
  margin: 0 auto 24px; box-shadow: 0 0 34px -4px rgba(217, 255, 53, 0.6);
  animation: authPop 0.5s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both;
}
@keyframes authPop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
.auth-textlink {
  margin-top: 14px; background: none; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ng-ink-dim); transition: color 0.16s;
}
.auth-textlink:hover { color: var(--ng-ink); }

.auth-foot {
  font-size: 12.5px; color: var(--ng-ink-dim); text-align: center;
}
.auth-foot a { color: var(--ng-ink-mute); text-decoration: underline; text-underline-offset: 3px; }
.auth-foot a:hover { color: var(--ng-lime-ink); }

@media (max-width: 920px) {
  .auth.auth--hero { grid-template-columns: 1fr; }
  .auth-hero {
    min-height: 300px; justify-content: center;
    padding: 116px 32px 40px;
    border-right: 0; border-bottom: 1px solid var(--ng-line);
  }
  .auth-hero-brand { margin-bottom: 26px; }
  .auth-hero-p { display: none; }
  .auth-hero-meta { margin-top: 24px; }
  .auth--hero .auth-shell { padding: 44px 24px 64px; }
}

@media (max-width: 480px) {
  .auth-card { padding: 30px 22px 26px; border-radius: 18px; }
  .auth-title { font-size: 26px; }
  .auth-otp { gap: 7px; }
  .auth-otp-box { height: 52px; font-size: 22px; }
  .auth-hero { min-height: 240px; }
}
