/* ============================================================
   AUTH — login, register, reset-password (rework 2026)
   ============================================================ */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

@media (max-width: 920px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}

/* Side panel : visuel marketing à gauche */
.auth-side {
  position: relative;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(800px 500px at 80% 20%, rgba(255,107,26,.10), transparent 60%),
    linear-gradient(135deg, var(--bg-card) 0%, var(--bg2) 100%);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.auth-side::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}

.auth-side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-side-brand img { width: 38px; height: 38px; }
.auth-side-brand .name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.auth-side-pitch {
  max-width: 460px;
}
.auth-side-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent-soft);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.auth-side-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}
.auth-side h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -.01em;
}
.auth-side p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.auth-side-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-side-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-size: 14.5px;
}
.auth-side-bullets li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  border-radius: 6px;
  font-size: 12px;
}

.auth-side-footer {
  font-size: 13px;
  color: var(--subtle);
}
.auth-side-footer a { color: var(--muted); }

/* Form panel : droite */
.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  background: var(--bg);
  position: relative;
}

@media (max-width: 600px) {
  .auth-card { padding: 32px 24px; }
}

.auth-card-inner {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  object-fit: contain;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  padding: 6px;
  margin: 0 0 22px;
  display: block;
}

.auth-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}

.auth-sub {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--subtle);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

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

.auth-footer {
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
  text-align: center;
}

.auth-footer a { color: var(--accent); font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; color: var(--accent-soft); }

.auth-feedback {
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  display: none;
}

.auth-feedback.show { display: block; }
.auth-feedback.ok   { border: 1px solid rgba(52,211,153,.28); background: rgba(52,211,153,.10); color: var(--success); }
.auth-feedback.err  { border: 1px solid rgba(248,113,113,.28); background: rgba(248,113,113,.10); color: var(--danger); }
