/* ═══════════════════════════════════════════════
   HearMeSafe Auth Pages — auth.css
   Design: Split screen, no scroll, no overflow
   Left panel: dark brand panel (40%)
   Right panel: clean white form (60%)
═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%; width: 100%; overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Shell ── */
.auth-shell {
  display: grid;
  grid-template-columns: 400px 1fr;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}
@media (max-width: 768px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-panel-left { display: none; }
}

/* ── Left panel: brand ── */
.auth-panel-left {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 100%);
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 36px 40px;
  overflow: hidden; position: relative;
}
.auth-panel-left::before {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.2) 0%, transparent 70%);
  top: -100px; right: -100px; pointer-events: none;
}

.auth-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.auth-brand-mark {
  width: 34px; height: 34px; background: #2563eb; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px;
}
.auth-brand-name {
  font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: -.02em;
}

.auth-panel-body { flex: 1; display: flex; flex-direction: column;
  justify-content: center; padding: 32px 0; position: relative; z-index: 1; }
.auth-panel-tagline {
  font-size: 1.5rem; font-weight: 700; color: #fff;
  line-height: 1.35; letter-spacing: -.025em; margin-bottom: 20px;
}
.auth-panel-tagline em { color: #93c5fd; font-style: normal; }
.auth-panel-sub {
  font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.75; margin-bottom: 36px;
}
.auth-panel-stats { display: flex; gap: 28px; }
.auth-stat-n { font-size: 1.4rem; font-weight: 800; color: #fff; line-height: 1; }
.auth-stat-l { font-size: 11px; color: rgba(255,255,255,.35); margin-top: 3px; }

.auth-testimonial {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 18px;
  position: relative; z-index: 1;
}
.auth-testimonial-q { font-size: 14px; color: rgba(255,255,255,.75);
  line-height: 1.7; font-style: italic; margin-bottom: 12px; }
.auth-testimonial-attr { font-size: 11px; color: rgba(255,255,255,.35);
  font-weight: 600; display: flex; align-items: center; gap: 6px; }
.auth-testimonial-attr i { color: #60a5fa; }

/* ── Right panel: form ── */
.auth-panel-right {
  background: #ffffff;
  display: flex; flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: auto; overflow-x: hidden;
  padding: 32px 24px;
}

.auth-form-wrap {
  width: 100%; max-width: 400px;
}

.auth-form-header { margin-bottom: 28px; }
.auth-form-title {
  font-size: 1.35rem; font-weight: 800; color: #0f172a;
  letter-spacing: -.025em; margin-bottom: 5px;
}
.auth-form-sub { font-size: 14px; color: #64748b; }
.auth-form-sub a { color: #2563eb; font-weight: 500; text-decoration: none; }

/* ── Form fields ── */
.auth-field { margin-bottom: 14px; }
.auth-label {
  display: block; font-size: 12px; font-weight: 700; color: #374151;
  margin-bottom: 5px; letter-spacing: .01em;
}
.auth-input-wrap { position: relative; }
.auth-input-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; font-size: 13px; pointer-events: none;
}
.auth-input {
  width: 100%; height: 42px; padding: 0 12px 0 38px;
  border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-size: 14px; font-family: 'Inter', inherit; color: #1e293b;
  background: #fff; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.auth-input:hover { border-color: #cbd5e1; }
.auth-input:focus {
  outline: none; border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.auth-input::placeholder { color: #94a3b8; font-weight: 400; }
.auth-input-no-icon { padding-left: 12px; }

.auth-input-reveal {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%); background: none; border: none;
  color: #94a3b8; cursor: pointer; font-size: 13px;
  padding: 4px; transition: color .12s;
}
.auth-input-reveal:hover { color: #64748b; }

/* ── Pseudo name field ── */
.pseudo-prefix {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 13px; font-weight: 600; color: #94a3b8; pointer-events: none;
}

/* ── Error/Success ── */
.auth-error {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 7px;
  padding: 10px 14px; font-size: 13px; color: #b91c1c;
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.auth-success {
  background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 7px;
  padding: 10px 14px; font-size: 13px; color: #065f46;
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}

/* ── Submit button ── */
.auth-submit {
  width: 100%; height: 42px; background: #2563eb; color: #fff;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 600;
  font-family: 'Inter', inherit; cursor: pointer; letter-spacing: -.01em;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
  transition: all .15s; margin-bottom: 14px;
}
.auth-submit:hover {
  background: #1d4ed8; transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(37,99,235,.45);
}
.auth-submit:active { transform: translateY(0); }

/* ── Divider ── */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: #94a3b8; margin: 14px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: #e2e8f0;
}

/* ── Checkbox ── */
.auth-check-row {
  display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px;
}
.auth-check {
  width: 16px; height: 16px; border: 1.5px solid #e2e8f0;
  border-radius: 4px; flex-shrink: 0; margin-top: 1px;
  accent-color: #2563eb; cursor: pointer;
}
.auth-check-label { font-size: 12px; color: #64748b; line-height: 1.5; }
.auth-check-label a { color: #2563eb; }

/* ── Footer link ── */
.auth-footer-link {
  text-align: center; font-size: 13px; color: #64748b; margin-top: 18px;
}
.auth-footer-link a { color: #2563eb; font-weight: 600; text-decoration: none; }

/* ── Trust badges ── */
.auth-trust { display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px; margin-top: 16px; }
.auth-trust-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: #94a3b8; font-weight: 500;
}
.auth-trust-item i { font-size: 9px; color: #bfdbfe; }

/* ── Anon info box ── */
.auth-info-box {
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px;
  padding: 12px 14px; font-size: 12px; color: #1d4ed8;
  display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px;
  line-height: 1.6;
}
.auth-info-box i { flex-shrink: 0; margin-top: 1px; }

/* ── Mobile top bar ── */
.auth-mobile-top {
  display: none; padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  background: #fff;
}
@media(max-width: 768px) { .auth-mobile-top { display: flex; align-items: center; gap: 9px; } }
