*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:#0B1E3A; --blue:#2E9CCA; --gold:#F5A623; --gold2:#E8961E;
  --white:#FFFFFF; --muted:#6B7280;
  --border:#E2E8F0; --text:#1A202C; --surface:#FFFFFF; --turquoise:#1ABC9C;
}
body {
  font-family:'DM Sans',sans-serif; min-height:100vh;
  display:flex; background:#F4F7FB;
  -webkit-font-smoothing:antialiased; overflow:auto;
}
/* ══ GAUCHE */
.auth-left { flex:1; position:relative; overflow:hidden; display:none; }
@media(min-width:900px){ .auth-left{ display:block; } }
.auth-left-bg {
  position:absolute; inset:0; background-size:cover;
  background-position:center; transform:scale(1.04);
  transition:transform 6s ease;
}
.auth-left-bg.ready { transform:scale(1); }
.auth-left-overlay {
  position:absolute; inset:0;
  background:linear-gradient(160deg,rgba(11,30,58,.82) 0%,rgba(11,30,58,.4) 50%,rgba(46,156,202,.22) 100%);
}
.auth-left-overlay2 {
  position:absolute; inset:0;
  background:linear-gradient(to right,rgba(11,30,58,.55),transparent);
}
.auth-left-content {
  position:absolute; inset:0; display:flex;
  flex-direction:column; justify-content:space-between; padding:44px 48px;
}
.auth-left-logo { display:flex; align-items:center; gap:14px; text-decoration:none; }
.auth-left-logo img {
  height:60px; width:auto;
  filter:drop-shadow(0 2px 12px rgba(0,0,0,.5));
  border-radius:8px; background:rgba(255,255,255,.08);
}
.auth-left-logo-text .name {
  font-family:'Cormorant Garamond',serif; font-size:22px;
  font-weight:700; color:var(--gold2); text-shadow:0 2px 8px rgba(0,0,0,.4);
}
.auth-left-logo-text .tagline {
  font-size:10px; font-weight:500; color:rgba(255,255,255,.65);
  letter-spacing:1.5px; text-transform:uppercase;
}
.auth-left-quote { color:rgba(255,255,255,.92); }
.auth-left-quote blockquote {
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(20px,2.5vw,32px); font-weight:600;
  line-height:1.4; margin-bottom:18px;
  text-shadow:0 2px 16px rgba(0,0,0,.3);
}
.auth-left-quote .gold-line {
  width:48px; height:3px; border-radius:2px; margin-bottom:16px;
  background:linear-gradient(90deg,var(--gold),var(--gold2));
}
.auth-left-quote cite {
  font-size:13px; font-style:normal;
  color:rgba(255,255,255,.6); letter-spacing:.5px;
}
.auth-dots { position:absolute; bottom:44px; right:44px; display:flex; gap:6px; }
.auth-dot { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.3); }
.auth-dot.active { background:var(--gold2); width:20px; border-radius:3px; }

/* ══ DROIT */
.auth-right {
  width:100%; max-width:520px; background:var(--surface);
  display:flex; flex-direction:column; overflow-y:auto; position:relative;
}
@media(min-width:900px){ .auth-right{ width:480px; flex-shrink:0; } }
.auth-right::before {
  content:''; display:block; height:4px; flex-shrink:0;
  background:linear-gradient(90deg,var(--navy),var(--blue),var(--gold));
}
.auth-right-inner {
  flex:1; display:flex; flex-direction:column;
  justify-content:center; padding:48px 52px;
  animation:slideRight .5s cubic-bezier(.22,1,.36,1) both;
}
@media(max-width:760px){
  .auth-right { max-width:none; }
  .auth-right-inner { padding:32px 28px; }
  .auth-form-header { margin-bottom:28px; }
  .auth-form-header h1 { font-size:clamp(24px,6vw,32px); }
  .form-row { grid-template-columns:1fr; }
  .auth-link-row, .login-link, .auth-footer, .forgot-password, .auth-links { font-size:13px; }
}
@media(max-width:520px) {
  .auth-right-inner { padding:24px 20px; }
  .auth-footer { padding:16px 18px; }
}
@media(max-width:500px){ .auth-right-inner{ padding:36px 28px; } }
@keyframes slideRight {
  from{ opacity:0; transform:translateX(24px); }
  to  { opacity:1; transform:translateX(0); }
}
.auth-mobile-logo { display:flex; align-items:center; gap:12px; margin-bottom:36px; }
@media(min-width:900px){ .auth-mobile-logo{ display:none; } }
.auth-mobile-logo img { height:46px; border-radius:6px; }
.auth-mobile-logo-text .name {
  font-family:'Cormorant Garamond',serif; font-size:18px;
  font-weight:700; color:var(--navy);
}
.auth-mobile-logo-text .tagline { font-size:10px; color:var(--muted); letter-spacing:1.2px; text-transform:uppercase; }
.auth-form-header { margin-bottom:32px; }
.auth-form-header .eyebrow {
  font-size:11px; font-weight:700; letter-spacing:2px;
  text-transform:uppercase; color:var(--gold2); margin-bottom:10px;
}
.auth-form-header h1 {
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(26px,3vw,36px); font-weight:700;
  color:var(--navy); line-height:1.15; margin-bottom:8px;
}
.auth-form-header p { font-size:14px; color:var(--muted); line-height:1.6; }
.form-group { margin-bottom:18px; }
.form-group label { display:block; font-size:13px; font-weight:600; color:var(--navy); margin-bottom:7px; }
.form-group input, .form-group select, .form-group textarea {
  width:100%; padding:13px 16px; border:1.5px solid var(--border);
  border-radius:10px; font-size:14px; font-family:'DM Sans',sans-serif;
  color:var(--text); background:#fafbfc; outline:none;
  transition:border-color .2s, box-shadow .2s, background .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color:var(--blue); background:#fff;
  box-shadow:0 0 0 4px rgba(46,156,202,.14);
}
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media(max-width:480px){ .form-row{ grid-template-columns:1fr; } }
.auth-submit {
  width:100%; padding:15px;
  background:linear-gradient(135deg,var(--gold) 0%,var(--gold2) 100%);
  color:#fff; border:none; border-radius:10px;
  font-family:'DM Sans',sans-serif; font-size:15px; font-weight:700;
  cursor:pointer; transition:transform .2s, box-shadow .2s;
  box-shadow:0 6px 20px rgba(245,166,35,.3);
  display:flex; align-items:center; justify-content:center;
  gap:9px; margin-top:4px;
}
.auth-submit:hover { transform:translateY(-2px) scale(1.01); box-shadow:0 12px 32px rgba(245,166,35,.4); }
.auth-links { margin-top:22px; display:flex; flex-direction:column; gap:8px; }
.auth-link-row {
  display:flex; justify-content:space-between; align-items:center;
  font-size:13.5px;
}
.auth-link-row span { color:var(--muted); }
.auth-link-row a { color:var(--blue); text-decoration:none; font-weight:700; }
.auth-link-row a:hover { color:var(--gold2); }
.auth-link-divider { height:1px; background:var(--border); margin:4px 0; opacity:.7; }
.alert-danger {
  padding:12px 16px; border-radius:9px; margin-bottom:20px;
  font-size:13.5px; font-weight:500; background:#FEF2F2;
  color:#B91C1C; border-left:4px solid #EF5350;
  animation:shakeIn .4s ease;
}
.alert-success {
  padding:12px 16px; border-radius:9px; margin-bottom:20px;
  font-size:13.5px; font-weight:500; background:#F0FDF4;
  color:#065F46; border-left:4px solid #00C897;
}
@keyframes shakeIn {
  0%,100%{ transform:translateX(0); } 20%{ transform:translateX(-6px); }
  40%{ transform:translateX(6px); } 60%{ transform:translateX(-3px); }
}
.forgot-password { text-align:right; margin-top:-10px; margin-bottom:18px; display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:4px; }
.forgot-password a { color:var(--blue); font-size:13px; font-weight:600; text-decoration:none; }
.forgot-password a:hover { color:var(--gold2); text-decoration:underline; }
.auth-footer {
  padding:20px 52px; border-top:1px solid var(--border);
  font-size:12px; color:var(--muted); background:#fafbfc;
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:8px; flex-shrink:0;
}
.auth-footer a { color:var(--turquoise); text-decoration:none; }
.auth-footer a:hover { color:var(--gold2); }
.auth-right::-webkit-scrollbar { width:5px; }
.auth-right::-webkit-scrollbar-thumb { background:var(--border); border-radius:3px; }
.no-account-note {
  margin-top:20px; padding-top:18px; border-top:1px solid var(--border);
  font-size:13px; color:var(--muted); text-align:center;
}
.no-account-note strong { display:block; color:var(--navy); margin-bottom:4px; }
