/* CARLYVIA — pages de connexion (connexion, mot de passe oublié, réinitialisation) */

body.auth-pro {
  min-height: 100vh; min-height: 100dvh; margin: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr;
  background: #F3F5F7;
}

/* ---------- Côté visuel ---------- */
.ax-side {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(90% 60% at 50% 32%, #1E2E3A 0%, #0E171E 70%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px 20px 26px; min-height: 250px;
}
.ax-scene { position: absolute; inset: 0; z-index: -1; }
.ax-road { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; top: 72px; height: calc(100% - 72px); }
@media (min-width: 960px) { .ax-road { top: 0; height: 100%; } }
.ax-lane { animation: ax-drive 1.6s linear infinite; }
@keyframes ax-drive { to { stroke-dashoffset: -60; } }
.ax-side::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,23,30,.2) 0%, rgba(14,23,30,0) 40%, rgba(14,23,30,.75) 100%);
}
.ax-side-top { color: #fff; }
.ax-side .logo-xl .logo-mark { width: 34px; height: 34px; }
.ax-side .logo-xl .logo-word { font-size: 22px; }
.ax-side-copy { display: none; }

/* ---------- Côté formulaire ---------- */
.ax-main { display: grid; align-content: start; justify-items: center; gap: 16px; padding: 0 16px 28px; }
.ax-mobile-logo { display: none; }
body.auth-pro .ax-card {
  width: min(100%, 440px); margin-top: -34px; position: relative;
  background: #fff; border: 1px solid #E1E6EA; border-radius: 18px; padding: 28px 24px;
  box-shadow: 0 24px 60px rgba(14, 23, 30, .18), 0 2px 6px rgba(14, 23, 30, .06);
  display: grid; gap: 18px;
}
body.auth-pro .ax-card::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--brass);
}
.ax-head { display: grid; gap: 4px; }
body.auth-pro .auth-title { font-size: 28px; font-weight: 800; font-stretch: 115%; letter-spacing: -.01em; line-height: 1.1; }
.ax-sub { color: var(--ink-3); font-size: 15px; }

.ax-input { position: relative; display: block; }
.ax-input > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: #7B8894; pointer-events: none; }
body.auth-pro .ax-input input {
  padding-left: 44px !important; min-height: 52px; border-radius: 12px; border-color: #CBD3DA;
  background: #FBFCFD; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
body.auth-pro .ax-input input:focus { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(176,141,87,.22); }
body.auth-pro .ax-input:focus-within > .ic { color: var(--ink); }
body.auth-pro .field input:not([type=checkbox]):not([type=radio]) { border-radius: 12px; min-height: 52px; }
body.auth-pro .field input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(176,141,87,.22); }

body.auth-pro .check input { accent-color: var(--ink); }
body.auth-pro .row-between a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }

body.auth-pro .btn-primary {
  min-height: 54px; border-radius: 12px; font-size: 16px; font-weight: 800; letter-spacing: .01em;
  background: var(--ink); border-color: var(--ink); color: #fff;
  box-shadow: 0 10px 20px rgba(14,23,30,.22), inset 0 -3px 0 var(--brass);
  transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease;
}
body.auth-pro .btn-primary:hover { background: #1E2E3A; box-shadow: 0 14px 26px rgba(14,23,30,.28), inset 0 -3px 0 var(--brass); }
body.auth-pro .btn-primary:active { transform: translateY(1px); }
body.auth-pro .btn-primary:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

body.auth-pro .center { justify-self: center; color: var(--ink); font-weight: 600; }
body.auth-pro .ax-card .flash { margin: 0; border-radius: 12px; }

.ax-legal { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); text-align: center; max-width: 440px; }
.ax-legal .ic { width: 15px; height: 15px; flex: none; }

/* ---------- Grand écran : écran partagé ---------- */
@media (min-width: 960px) {
  body.auth-pro { grid-template-columns: minmax(0, 1.15fr) minmax(460px, 1fr); grid-template-rows: 1fr; }
  .ax-side { min-height: 100vh; min-height: 100dvh; padding: 44px 52px 48px; }
  .ax-side .logo-xl .logo-mark { width: 42px; height: 42px; }
  .ax-side .logo-xl .logo-word { font-size: 28px; }
  .ax-side-copy { display: grid; gap: 18px; max-width: 540px; }
  .ax-kicker { font-size: 14px; font-weight: 700; color: var(--brass); }
  .ax-tagline { font-size: clamp(30px, 3vw, 46px); font-weight: 800; font-stretch: 112%; line-height: 1.08; letter-spacing: -.015em; }
  .ax-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
  .ax-points li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: #D7DEE4; }
  .ax-points li::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--brass); flex: none; }

  .ax-main { align-content: center; padding: 40px 48px; background: #F3F5F7; }
  body.auth-pro .ax-card { margin-top: 0; padding: 36px 36px 32px; }
}

@media (prefers-reduced-motion: reduce) { .ax-lane { animation: none; } }
