/* Connexion Trafigo Parking — maquette approuvée le 30 septembre 2026. */
:root {
    color-scheme: light;
    --navy: #062a52;
    --ink: #082849;
    --blue: #0866de;
    --muted: #637895;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: #f5f7fb;
    font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body.login-page { margin: 0; padding: 16px; min-height: 100vh; min-height: 100svh; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid #399dff; outline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 24px; z-index: 10001; padding: 12px 18px; border-radius: 8px; background: #fff; color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.parking-main { position: relative; display: grid; grid-template-columns: minmax(0, 59fr) minmax(0, 41fr); width: 100%; min-height: calc(100vh - 32px); min-height: calc(100svh - 32px); margin: 0 auto; border-radius: 22px; background: #fff; }
.parking-story { position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; padding: 34px clamp(30px, 3.4vw, 58px) 32px; overflow: hidden; border-radius: 22px; color: #fff; background: var(--navy); }
.parking-background { position: absolute; inset: 0 0 -12%; z-index: -1; background: url("../../img/parking-login-hero-v2.webp") center center / cover no-repeat; }
.parking-background::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #062a521f, transparent 80%), linear-gradient(180deg, transparent 60%, #031c3aeb 89%, #031c3a 100%); }
.parking-brand { display: flex; align-items: center; align-self: flex-start; gap: 18px; font-size: clamp(25px, 2.3vw, 36px); font-weight: 650; line-height: 1.15; letter-spacing: -.7px; }
.parking-brand-icon { width: 56px; height: 56px; }
.parking-brand small { display: block; margin-top: 9px; font-size: 9px; font-weight: 500; letter-spacing: 3px; color: #c5d6e9; }
.parking-story-copy { margin-top: clamp(32px, 4.5vh, 52px); }
.parking-story h2 { margin: 0; font-size: clamp(44px, 4.6vw, 80px); font-weight: 650; letter-spacing: -2px; line-height: 1.045; }
.parking-story h2 span { color: #a8cfff; }
.parking-description { margin: 18px 0 0; font-size: clamp(14px, 1.25vw, 20px); line-height: 1.55; color: #f3f7fe; text-shadow: 0 1px 6px #062a5299; }
.parking-highlights { display: flex; align-items: center; gap: 0; margin: auto 0 0; padding: 24px 0 3px; border-top: 1px solid #ffffff55; list-style: none; }
.parking-highlights li { display: flex; align-items: center; gap: 12px; flex: 1; padding: 0 20px; font-size: clamp(11px, .96vw, 15px); line-height: 1.4; }
.parking-highlights li:first-child { padding-left: 0; }
.parking-highlights li:last-child { padding-right: 0; }
.parking-highlights li + li { border-left: 1px solid #ffffff55; }
.parking-highlights svg { width: 27px; height: 27px; }
.login-panel { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 30px clamp(32px, 3.3vw, 64px) 28px; }
.language-switch { display: flex; align-self: flex-end; flex: 0 0 auto; overflow: hidden; border: 1px solid #e0e7f0; border-radius: 8px; font-size: 11px; font-weight: 650; color: #536b87; }
.language-switch a { display: grid; place-items: center; min-width: 44px; min-height: 34px; }
.language-switch a[aria-current] { color: var(--blue); background: #e8f1ff; }
.language-switch a:hover:not([aria-current]) { background: #f3f6fb; }
.language-switch a:focus-visible { outline-offset: -3px; }
.login-card { width: 100%; max-width: 480px; margin: auto; padding: 30px 0; }
.login-eyebrow { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.login-emblem { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: #e8f1ff; }
h1 { margin: 0; font-size: clamp(32px, 3.3vw, 54px); font-weight: 650; letter-spacing: -1.5px; line-height: 1.16; }
.login-intro { margin: 13px 0 32px; color: var(--muted); font-size: clamp(13px, 1.18vw, 18px); line-height: 1.55; }
.form-field { margin-bottom: 22px; }
.form-field label { display: block; margin-bottom: 9px; color: #183856; font-size: 14px; font-weight: 600; }
.input-container { position: relative; }
.field-icon { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-container input { display: block; width: 100%; height: 54px; padding: 0 48px; border: 1px solid #ced9e6; border-radius: 9px; color: var(--ink); background: #fff; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
#username { padding-right: 16px; }
.input-container input::placeholder { color: #7386a0; opacity: 1; }
.input-container input:hover { border-color: #a7bad2; }
.input-container input:focus { outline: none; border-color: #3c8ae8; box-shadow: 0 0 0 3px #0866de12; }
.input-container input:disabled { opacity: .65; }
.toggle-password { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 7px; color: var(--muted); background: transparent; }
.toggle-password:hover { color: var(--blue); background: #f0f5fd; }
.remember-choice { display: flex; align-items: center; gap: 11px; width: fit-content; min-height: 28px; margin: -5px 0 20px; color: #4e6684; font-size: 12px; line-height: 1.5; cursor: pointer; }
.remember-choice input { flex-shrink: 0; width: 17px; height: 17px; margin: 0; accent-color: var(--blue); cursor: pointer; }
#loginBtn { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; padding: 14px 48px; border: 1px solid var(--blue); border-radius: 9px; color: #fff; background: var(--blue); font-size: 15px; font-weight: 600; transition: background .15s, box-shadow .15s; }
#loginBtn > svg { position: absolute; right: 21px; }
#loginBtn:hover { background: #0056c5; box-shadow: 0 5px 16px #0866de24; }
#loginBtn:active { transform: translateY(1px); }
#loginBtn:disabled { opacity: .7; cursor: wait; }
.login-help { display: flex; align-items: center; gap: 17px; margin-top: 29px; padding-top: 23px; border-top: 1px solid #dce4ef; }
.help-icon { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; color: var(--blue); background: #e8f1ff; }
.login-help p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.login-help strong { color: #264465; font-weight: 500; }
.parking-footer { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; color: #667d9b; text-align: center; font-size: 12px; line-height: 1.5; }
noscript p { padding: 12px; border: 1px solid #e9b266; border-radius: 8px; color: #664000; background: #fff5de; font-size: 14px; }
/* Les états de connexion existants conservent leurs notifications et modales. */
.loader { width: 18px; height: 18px; border: 2px solid #ffffff60; border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
#notifications-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.notification { max-width: min(360px, calc(100vw - 40px)); padding: 16px; overflow: hidden; border: 1px solid #ffffff66; border-radius: 9px; box-shadow: 0 8px 24px #062a5229; font-size: 14px; backdrop-filter: blur(10px); }
.notif-message { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.notif-timer { height: 3px; margin-top: 12px; transform-origin: left; }
.close-btn { border: 0; background: none; color: inherit; font-size: 22px; line-height: 1; }
.modal-overlay { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: #031d41b8; opacity: 0; visibility: hidden; transition: opacity .2s; }
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-content { width: min(420px, 100%); padding: 28px; border: 1px solid #e3e8ef; border-radius: 14px; background: #fcfdff; text-align: center; box-shadow: 0 12px 42px #062a5233; }
.modal-content h2 { margin: 0 0 15px; font-size: 23px; font-weight: 500; }
.modal-content p { line-height: 1.6; overflow-wrap: anywhere; }
.modal-content button { margin: 12px 4px 0; padding: 12px 18px; border: 1px solid #d6e1ef; border-radius: 7px; color: var(--navy); background: #edf3fa; font-weight: 500; }
.modal-content #resendEmailBtn { color: #fff; border-color: var(--blue); background: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shakeFadeIn { from { opacity: 0; transform: translateX(15px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeShrinkOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (min-width: 901px) {
    .parking-story { min-height: 660px; }
    .parking-story-copy { margin-bottom: 100px; }
}
@media (max-width: 1150px) and (min-width: 901px) {
    .parking-main { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
    .parking-story, .login-panel { padding-inline: 28px; }
    .parking-brand { font-size: 25px; gap: 13px; }
    .parking-brand small { font-size: 8px; letter-spacing: 2px; }
    .parking-story h2 { font-size: 46px; }
    .parking-highlights li { gap: 8px; padding-inline: 12px; font-size: 11px; }
    .parking-highlights svg { width: 23px; height: 23px; }
    h1 { font-size: 34px; }
}
@media (max-height: 800px) and (min-width: 901px) {
    .parking-story { min-height: 620px; padding-top: 28px; padding-bottom: 24px; }
    .parking-brand-icon { width: 48px; height: 48px; }
    .parking-story-copy { margin-top: 28px; }
    .parking-story h2 { font-size: clamp(44px, 4.3vw, 62px); }
    .parking-description { margin-top: 15px; font-size: 14px; }
    .login-panel { padding-top: 20px; padding-bottom: 20px; }
    .login-card { padding-block: 12px; }
    .login-eyebrow { margin-bottom: 12px; }
    .login-emblem { width: 36px; height: 36px; }
    h1 { font-size: clamp(32px, 3vw, 42px); }
    .login-intro { margin: 10px 0 20px; font-size: 13px; }
    .form-field { margin-bottom: 15px; }
    .input-container input { height: 50px; font-size: 14px; }
    .toggle-password { top: 3px; }
    .remember-choice { margin-bottom: 16px; }
    #loginBtn { min-height: 50px; }
    .login-help { margin-top: 18px; padding-top: 19px; }
    .parking-footer { font-size: 11px; }
}
@media (max-width: 900px) {
    body.login-page { padding: 12px; }
    .parking-main { display: flex; flex-direction: column; max-width: 580px; min-height: calc(100vh - 24px); min-height: calc(100svh - 24px); border-radius: 18px; }
    .parking-story { padding: 24px; border-radius: 18px 18px 0 0; }
    .parking-background, .parking-story-copy, .parking-highlights { display: none; }
    .parking-background { background-image: none; }
    .parking-brand { gap: 10px; max-width: calc(100% - 75px); font-size: 21px; letter-spacing: -.4px; }
    .parking-brand-icon { width: 38px; height: 38px; }
    .parking-brand small { font-size: 7px; letter-spacing: 1.6px; margin-top: 6px; white-space: nowrap; }
    .login-panel { position: static; flex: 1; padding: 30px 28px 24px; }
    .language-switch { position: absolute; top: 27px; right: 20px; background: #fff; font-size: 10px; }
    .language-switch a { min-width: 34px; min-height: 32px; }
    .login-card { max-width: 420px; padding: 0 0 28px; }
    .login-eyebrow { margin-bottom: 20px; font-size: 9px; gap: 12px; }
    .login-emblem { width: 36px; height: 36px; border-radius: 9px; }
    h1 { font-size: 34px; letter-spacing: -1px; }
    .login-intro { margin: 12px 0 28px; font-size: 14px; }
    .form-field { margin-bottom: 20px; }
    .input-container input { font-size: 16px; }
    .remember-choice { min-height: 32px; margin-bottom: 18px; font-size: 12px; }
    .login-help { margin-top: 25px; padding-top: 22px; gap: 12px; }
    .login-help p { font-size: 12px; }
    .help-icon { width: 40px; height: 40px; }
    .parking-footer { margin-top: auto; font-size: 11px; }
}
@media (max-width: 380px) {
    body.login-page { padding: 8px; }
    .parking-main { min-height: calc(100svh - 16px); }
    .parking-story { padding: 20px 16px; }
    .parking-brand { gap: 8px; font-size: 18px; }
    .parking-brand-icon { width: 34px; height: 34px; }
    .parking-brand small { font-size: 6px; letter-spacing: 1.3px; }
    .language-switch { top: 21px; right: 14px; }
    .language-switch a { min-width: 30px; }
    .login-panel { padding: 26px 20px 22px; }
    h1 { font-size: 30px; }
    .input-container input { padding-left: 39px; }
    .input-container input::placeholder { font-size: 13px; }
    .field-icon { left: 12px; width: 18px; }
    .login-help { gap: 10px; }
    .login-help p { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

