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

/* ── Panneau gauche ── */
.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;
}

/* Étapes */
.auth-panel__steps { display: flex; flex-direction: column; gap: 16px; }

.auth-step { display: flex; align-items: center; gap: 14px; }

.auth-step__num {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(245,200,66,0.2); border: 1.5px solid rgba(245,200,66,0.4);
  color: #F5C842; font-family: var(--font-body); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.auth-step__label {
  font-family: var(--font-body); font-size: 14px; color: rgba(255,255,255,0.8);
}

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

/* ── Panneau droit ── */
.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: 36px; 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;
}

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

.aform__label {
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  color: var(--bleu-fonce); text-transform: uppercase; letter-spacing: 0.05em;
}

.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; }
.aform__switch a:hover { text-decoration: underline; }

/* ── 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; }
  .aform__input { font-size: 16px; padding: 12px 14px; }
  .aform__submit { padding: 14px; font-size: 14px; }
}
