/* ─── Auth screens (login / signup / forgot) ──────────────────────── */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}
.auth-shell .auth-side {
  position: relative;
  background: linear-gradient(135deg, var(--primary), color-mix(in oklch, var(--primary) 60%, #000));
  color: var(--primary-ink);
  padding: 48px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.auth-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.18), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(255,255,255,.14), transparent 50%);
  pointer-events: none;
}
.auth-side > * { position: relative; z-index: 1; }

.auth-side .brand-mark { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.2); }

.auth-side h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: auto 0 16px;
  font-weight: 600;
}
.auth-side p {
  font-size: 15px;
  opacity: .85;
  max-width: 440px;
  line-height: 1.55;
  margin: 0 0 32px;
}
.auth-side .auth-feats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  font-size: 13px;
}
.auth-side .auth-feats > div {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 14px 16px;
}
.auth-side .auth-feats > div b { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.auth-side .auth-feats > div span { opacity: .85; font-size: 12.5px; }

.auth-form {
  padding: 48px;
  display: grid;
  place-items: center;
}
.auth-form-inner {
  width: 100%;
  max-width: 420px;
}
.auth-form h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 6px;
}
.auth-form .auth-sub {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 28px;
}
.auth-form label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink-2);
}
.auth-form .field {
  margin-bottom: 16px;
}
.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="password"] {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.auth-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.auth-form .field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 12.5px;
}
.auth-form .field-row label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 0; }
.auth-form .field-row a { color: var(--primary); cursor: default; font-weight: 500; }

.auth-form .err {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid color-mix(in oklch, var(--danger) 30%, transparent);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  margin-bottom: 14px;
}
.auth-form .ok {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid color-mix(in oklch, var(--success) 30%, transparent);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  margin-bottom: 14px;
}

.auth-form .switch-link {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.auth-form .switch-link a { color: var(--primary); cursor: default; font-weight: 500; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-shell .auth-side { display: none; }
  .auth-form { padding: 32px 20px; }
}
