/* ── Layout pleine page ── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Panneau gauche illustré ── */
.auth-panel {
  background: linear-gradient(145deg, #042C53 0%, #185FA5 55%, #378ADD 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
}

.auth-panel::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: -120px; left: -80px;
}

.auth-panel::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(245,200,66,0.12);
  top: -60px; right: -60px;
}

.auth-panel__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.auth-panel__logo-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}

.auth-panel__logo-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.auth-panel__body {
  position: relative;
  z-index: 1;
}

.auth-panel__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(245,200,66,0.18);
  color: #F5C842;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.auth-panel__tag::before {
  content: '';
  width: 6px; height: 6px;
  background: #F5C842;
  border-radius: 50%;
}

.auth-panel__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 16px;
}

.auth-panel__title span { color: #F5C842; }

.auth-panel__desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin: 0 0 36px;
  max-width: 340px;
}

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

.auth-panel__perk {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

.auth-panel__perk-icon {
  width: 30px; height: 30px;
  background: rgba(245,200,66,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #F5C842;
  flex-shrink: 0;
}

.auth-panel__footer {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.80);
}

/* ── Panneau droit : formulaire ── */
.auth-form-panel {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

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

.auth-form-wrap__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  margin-bottom: 28px;
  padding: 10px 0;
  min-height: 44px;
  transition: color 0.2s;
}

.auth-form-wrap__back:hover { color: var(--bleu-fonce); }

.auth-form-wrap__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  color: var(--bleu-fonce);
  margin: 0 0 6px;
  line-height: 1.15;
}

.auth-form-wrap__sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: #64748b;
  margin: 0 0 32px;
}

/* Formulaire */
.aform { display: flex; flex-direction: column; gap: 18px; }

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

.aform__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--bleu-fonce);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.aform__forgot {
  font-size: 11px;
  font-weight: 500;
  color: var(--bleu-clair);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  padding: 10px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.aform__forgot:hover { text-decoration: underline; }

.aform__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--bleu-fonce);
  background: #f8fafc;
  border: 1.5px solid #e2eaf5;
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
  box-sizing: border-box;
}

.aform__input::placeholder { color: #b0bec5; }

.aform__input:focus {
  border-color: var(--bleu-clair);
  box-shadow: 0 0 0 4px rgba(55,138,221,0.10);
  background: #fff;
}

.aform__input--error { border-color: #e53e3e; }

.aform__error {
  font-family: var(--font-body);
  font-size: 12px;
  color: #e53e3e;
  margin: 0;
}

.aform__submit {
  margin-top: 6px;
  width: 100%;
  background: var(--bleu-fonce);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: background 0.22s, transform 0.15s, box-shadow 0.22s;
  box-shadow: 0 4px 18px rgba(4,44,83,0.18);
}

.aform__submit:hover {
  background: var(--bleu-moyen);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(4,44,83,0.22);
}

.aform__switch {
  font-family: var(--font-body);
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin-top: 4px;
}

.aform__switch a {
  color: var(--bleu-clair);
  font-weight: 700;
  text-decoration: none;
  padding: 8px 4px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.aform__switch a:hover { text-decoration: underline; }

/* ── Bouton Google ── */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
  margin-bottom: 18px;
}
.google-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* ── Séparateur ou ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .auth-form-panel { min-height: 100vh; padding: 40px 24px; }
}

@media (max-width: 480px) {
  .auth-form-panel { padding: 28px 16px; }
  .auth-form-wrap__title { font-size: 26px; }
  .auth-form-wrap__back { margin-bottom: 24px; }
  .aform__input { font-size: 16px; padding: 12px 14px; }
  .aform__submit { padding: 14px; font-size: 14px; }
}
