/* ══════════════════════════════════════════════════════
   TSSR QCM · Auth / Login 2026
   ══════════════════════════════════════════════════════ */

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Nav ─── */
.auth-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 28px;
  background: rgba(13, 8, 18, .72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] .auth-nav {
  background: rgba(246, 244, 255, .72);
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--surf-3);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .83rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--t-sm) ease;
}
.auth-back:hover {
  background: var(--surf-2);
  border-color: var(--line-2);
  color: var(--ink);
  opacity: 1;
}

/* ─── Split layout ─── */
main#content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr min(480px, 50%);
  min-height: calc(100vh - 53px);
}

/* ─── Left: hero ─── */
.auth-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 52px;
  position: relative;
  overflow: hidden;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 22% 38%, rgba(240, 84, 110, .09), transparent 58%),
    radial-gradient(ellipse 50% 60% at 82% 68%, rgba(130, 80, 220, .07), transparent 55%);
  pointer-events: none;
}

.auth-hero::after {
  content: "";
  position: absolute;
  bottom: -18%;
  right: -8%;
  width: 42vmin;
  height: 42vmin;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  filter: blur(18px);
  pointer-events: none;
  animation: orb 22s ease-in-out infinite alternate;
}

.auth-hero-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
}
.auth-hero-content .eyebrow { margin-bottom: 18px; }
.auth-hero-content h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 0 0 18px;
  background: linear-gradient(140deg, var(--ink) 35%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 17ch;
}
.auth-copy {
  font-size: .96rem;
  line-height: 1.76;
  color: var(--muted);
  margin: 0;
  max-width: 40ch;
}

/* Stat pills */
.auth-stat-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.auth-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surf);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-2);
}
.auth-stat-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  flex-shrink: 0;
}

/* ─── Right: panel form ─── */
.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 46px;
  background: var(--surf-grad);
  border-left: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.auth-panel::before {
  content: "";
  position: absolute;
  top: -35%;
  right: -25%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--accent-soft), transparent 62%);
  filter: blur(14px);
  pointer-events: none;
}

/* ─── Tabs ─── */
.auth-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 26px;
  padding: 4px;
  background: var(--surf-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  position: relative;
  z-index: 1;
}
.auth-tab {
  padding: 8px 22px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: all var(--t-sm) ease;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.active {
  background: var(--surf-2);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
}

/* ─── Form ─── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field label {
  font-size: .83rem;
  font-weight: 700;
  color: var(--ink-2);
}
.auth-field input {
  padding: 11px 15px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--surf-2);
  color: var(--ink);
  font-size: .95rem;
  outline: none;
  transition: all var(--t-sm) ease;
}
.auth-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.auth-field input::placeholder { color: var(--muted); opacity: .65; }
.auth-hint {
  font-size: .74rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ─── Actions ─── */
.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.auth-actions .button {
  text-align: center;
  width: 100%;
  padding: 13px 22px;
  font-size: .95rem;
}

/* ─── Feedback ─── */
.auth-feedback {
  padding: 11px 13px;
  border-radius: var(--r-md);
  font-size: .87rem;
  font-weight: 500;
  background: var(--fb-err);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, .2);
  position: relative;
  z-index: 1;
}
.auth-feedback[data-tone="success"] {
  background: var(--fb-ok);
  color: var(--success);
  border-color: rgba(52, 211, 153, .2);
}

/* ─── Footer ─── */
.auth-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  position: relative;
  z-index: 1;
}
.auth-footer p { margin: 0; font-size: .83rem; color: var(--muted); }
.auth-footer a { color: var(--accent); font-weight: 600; }

/* ─── Responsive ─── */
@media (max-width: 820px) {
  main#content {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .auth-hero { padding: 40px 32px; min-height: 220px; }
  .auth-hero-content h1 { font-size: 1.9rem; }
  .auth-panel { padding: 38px 28px; border-left: none; border-top: 1px solid var(--line); }
}

@media (max-width: 480px) {
  .auth-nav { padding: 12px 18px; }
  .auth-hero { padding: 28px 20px; }
  .auth-panel { padding: 28px 20px; }
}
