/* ===========================================================
   Efomo Auth — split screen registration / login
   Hérite de landing.css (variables, btn, aurora, fonts)
   =========================================================== */

.auth-body {
  margin: 0;
  background: var(--papier);
  min-height: 100vh;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── Panneau formulaire (gauche) ───────────────────────────── */

.auth-pane--form {
  position: relative;
  background: var(--blanc);
  padding: 40px clamp(32px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.auth-back {
  position: absolute;
  top: 28px;
  left: clamp(28px, 4vw, 60px);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--neutral-500);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.auth-back:hover { color: var(--encre); }

.auth-form-wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  color: var(--encre);
}

.auth-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 10px;
}

.auth-sub {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--neutral-500);
  margin: 0 0 28px;
}

.auth-alert {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #991B1B;
}

.auth-alert--info {
  background: var(--lagon-soft);
  border-color: rgba(63, 207, 192, 0.35);
  color: var(--lagon-deep);
}

.auth-hint--link {
  color: var(--lagon-deep);
  text-decoration: none;
  font-weight: 500;
  margin-left: auto;
}

.auth-hint--link:hover { text-decoration: underline; }

.auth-alert strong { display: block; margin-bottom: 6px; }

.auth-alert ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--encre);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.auth-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--neutral-400);
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
  appearance: none;
  width: 100%;
  font-family: var(--font-text);
  font-size: 15px;
  color: var(--encre);
  background: var(--blanc);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input::placeholder {
  color: var(--neutral-400);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--lagon);
  box-shadow: 0 0 0 4px var(--lagon-soft);
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--neutral-700);
  line-height: 1.5;
  cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--neutral-400);
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  display: grid;
  place-items: center;
}

.auth-checkbox input[type="checkbox"]:checked {
  background: var(--lagon-deep);
  border-color: var(--lagon-deep);
}

.auth-checkbox input[type="checkbox"]:checked::after {
  content: "✓";
  color: var(--blanc);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.auth-checkbox a {
  color: var(--lagon-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-submit {
  width: 100%;
  margin-top: 6px;
}

.auth-switch {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--neutral-500);
}

.auth-switch a {
  color: var(--lagon-deep);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover { text-decoration: underline; }

/* ── Bouton OAuth (Google / Microsoft) ───────────────────────── */

.auth-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid var(--neutral-200, #e5e7eb);
  background: #fff;
  color: var(--neutral-800, #1f2937);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
  cursor: pointer;
}

.auth-oauth-btn:hover {
  border-color: var(--neutral-300, #d1d5db);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.auth-oauth-btn:active {
  transform: translateY(1px);
}

.auth-oauth-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-oauth-hint {
  margin: 4px 4px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--neutral-500, #6b7280);
  text-align: center;
}

.auth-oauth-hint a {
  color: var(--lagon-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Séparateur "ou avec votre email" ────────────────────────── */

.auth-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 12px;
  font-size: 12px;
  color: var(--neutral-500, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.auth-divider span {
  padding: 0 12px;
}

/* ── Panneau brand (droite) ────────────────────────────────── */

.auth-pane--brand {
  position: relative;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
  padding: 60px clamp(40px, 5vw, 80px);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.auth-brand-inner {
  position: relative;
  z-index: 2;
  max-width: 480px;
}

.auth-brand-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 24px 0 18px;
  color: var(--blanc);
}

.auth-brand-lede {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 32px;
}

.auth-brand-points {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-brand-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.auth-brand-points strong {
  color: var(--blanc);
  font-weight: 600;
}

.auth-brand-points .feature-point-check {
  background: rgba(63, 207, 192, 0.18);
  color: var(--lagon);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 700;
  font-size: 11px;
}

.auth-brand-quote {
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--lagon);
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  font-style: italic;
}

.auth-brand-quote span {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-pane--brand { display: none; }
  .auth-pane--form { min-height: 100vh; padding: 90px 24px 60px; }
  .auth-back { top: 20px; left: 24px; }
}

@media (max-width: 640px) {
  .auth-field-row { grid-template-columns: 1fr; }
  .auth-title { font-size: 26px; }
}
