:root {
  --navy: #061744;
  --navy-soft: #314a7c;
  --blue: #087bf2;
  --cyan: #0dc8ed;
  --line: #bfd4ee;
  --panel: #f6fbff;
  --white: #fff;
  --muted: #64769d;
  --radius: 20px;
  --shadow: 0 16px 38px rgba(29, 122, 184, .16);
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--navy);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; background: #fff; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; z-index: 20; top: -80px; left: 20px; padding: 12px 16px; color: #fff; background: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.page-shell { display: grid; grid-template-columns: 59.35% 40.65%; min-height: calc(100vh - 61px); }
.promo-panel { position: relative; min-height: 963px; overflow: hidden; background: url("assets/mediterranean-terrace.webp") center / cover no-repeat; }
.promo-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 35%, rgba(255,255,255,.23) 75%, rgba(255,255,255,.03) 100%), linear-gradient(180deg, rgba(224,245,255,.25), rgba(255,255,255,.12)); }
.promo-content { position: relative; z-index: 2; padding: 45px 52px 0 70px; }
.brand { display: block; object-fit: contain; object-position: left center; }
.brand--hero { width: 365px; height: 115px; margin-left: -12px; }
.title-rule { width: 34px; height: 2px; margin: 8px 0 20px; background: #08a7f3; }
h1 { margin: 0; max-width: 560px; font-size: clamp(44px, 3.2vw, 52px); line-height: 1.08; letter-spacing: -1.8px; font-weight: 800; }
h1 span { color: var(--blue); }
.promo-copy { margin: 10px 0 20px; color: var(--navy-soft); font-size: 20px; line-height: 1.32; font-weight: 500; }
.benefits { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); max-width: 650px; margin-top: 22px; }
.benefit { min-height: 100px; padding: 0 15px; text-align: center; border-right: 1px solid rgba(68,128,191,.28); }
.benefit:first-child { padding-left: 0; }
.benefit:last-child { padding-right: 0; border-right: 0; }
.benefit svg { display: block; width: 43px; height: 43px; margin: 0 auto 8px; color: var(--blue); filter: drop-shadow(0 4px 8px rgba(5,126,242,.15)); }
.benefit strong, .benefit span { display: block; }
.benefit strong { font-size: 13px; line-height: 1.3; }
.benefit span { margin-top: 3px; color: #405783; font-size: 12px; line-height: 1.45; }
.handwritten { position: absolute; z-index: 3; left: 55px; bottom: 245px; margin: 0; transform: rotate(-6deg); color: #043c94; font-family: "Segoe Print", "Comic Sans MS", cursive; font-size: 32px; line-height: 1.03; }
.handwritten span { display: block; width: 140px; height: 3px; margin: 9px 0 0 35px; transform: rotate(-8deg); border-radius: 3px; background: #087bf2; }
.laptop { position: absolute; z-index: 2; left: 220px; bottom: 8px; width: min(620px, 70%); height: auto; object-fit: contain; filter: drop-shadow(0 18px 12px rgba(4,22,54,.18)); }

.login-panel { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; padding: 114px 32px 61px; background: radial-gradient(circle at 72% 48%, #e5f9ff 0, #f7fbff 43%, #fff 100%); }
.language-wrap { position: absolute; z-index: 5; top: 24px; right: 34px; }
.language-button { display: flex; align-items: center; gap: 11px; min-width: 170px; height: 45px; padding: 0 16px; color: var(--navy); background: rgba(255,255,255,.72); border: 1px solid #b8cdea; border-radius: 24px; cursor: pointer; }
.language-button > svg { width: 20px; height: 20px; margin-left: auto; }
.flag-fr { display: flex; width: 23px; height: 17px; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.flag-fr i { flex: 1; }.flag-fr i:nth-child(1){background:#0c3fbd}.flag-fr i:nth-child(2){background:#fff}.flag-fr i:nth-child(3){background:#ed2939}
.language-menu { position: absolute; top: 53px; right: 0; width: 170px; padding: 6px; background: #fff; border: 1px solid #d8e6f5; border-radius: 12px; box-shadow: var(--shadow); }
.language-menu button { width: 100%; padding: 9px 10px; text-align: left; color: var(--navy); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.language-menu button:hover { background: #eef7ff; }

.login-card { width: min(558px, 100%); min-height: 786px; padding: 39px 34px 35px; background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.95); border-radius: var(--radius); box-shadow: var(--shadow); }
.eyebrow { margin: 1px 0 18px; text-align: center; color: var(--blue); font-size: 12px; line-height: 1; letter-spacing: 6px; font-weight: 700; }
.brand--card { width: 355px; max-width: 85%; height: 130px; margin: 0 auto 5px; object-position: center; }
.section-label { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 3px 15px 54px; }
.section-label span { height: 1px; background: #aac9eb; }
.section-label h2 { margin: 0; white-space: nowrap; font-size: 16px; font-weight: 500; }
.field-label { display: block; margin: 0 0 7px; font-size: 15px; font-weight: 600; }
.input-wrap { position: relative; display: flex; align-items: center; height: 53px; margin-bottom: 21px; color: #61749b; border: 1px solid #b7d0ed; border-radius: 11px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.input-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8,123,242,.11); }
.input-wrap--error { border-color: #c82333; }
.input-wrap > svg { width: 25px; height: 25px; margin-left: 16px; flex: 0 0 auto; }
.input-wrap input { width: 100%; min-width: 0; height: 100%; padding: 0 15px; color: var(--navy); background: transparent; border: 0; outline: 0; font-size: 15px; }
.input-wrap input::placeholder { color: #8091b4; opacity: 1; }
.password-toggle { display: grid; place-items: center; width: 50px; height: 100%; padding: 0; color: #526993; background: none; border: 0; cursor: pointer; }
.password-toggle svg { width: 23px; height: 23px; }
.form-options { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: -1px; font-size: 13px; }
.form-options a { color: #0072e7; text-underline-offset: 2px; }
.check-control { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check-control input { position: absolute; opacity: 0; pointer-events: none; }
.checkmark { display: grid; place-items: center; width: 23px; height: 23px; color: transparent; border: 1px solid #aec9e8; border-radius: 4px; background: #fff; }
.checkmark svg { width: 17px; height: 17px; }
.check-control input:checked + .checkmark { color: #fff; border-color: var(--blue); background: var(--blue); }
.check-control input:focus-visible + .checkmark { box-shadow: 0 0 0 4px rgba(8,123,242,.14); }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 19px; width: 100%; height: 58px; margin-top: 27px; color: #fff; background: linear-gradient(100deg, #087bf2 0%, #1199f6 100%); border: 0; border-radius: 11px; box-shadow: 0 10px 20px rgba(8,123,242,.14); cursor: pointer; font-size: 18px; transition: transform .18s, box-shadow .18s; }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 14px 24px rgba(8,123,242,.22); }
.primary-button:active { transform: translateY(0); }
.primary-button svg { width: 24px; height: 24px; }
.form-status { min-height: 16px; margin: 8px 0 -24px; text-align: center; font-size: 11px; line-height: 1.35; }
.form-status--error { color: #c82333; }.form-status--success { color: #16833c; }
.form-status--error ul, .field-error ul { margin: 0; padding: 0; list-style: none; }
.field-error { margin: -13px 0 14px; color: #c82333; font-size: 11px; }
.preview-link { display: block; margin: 28px 0 -24px; text-align: center; color: var(--blue); font-size: 12px; font-weight: 600; }
.security-note { display: flex; align-items: center; gap: 23px; min-height: 110px; margin-top: 44px; padding: 22px 50px; background: linear-gradient(110deg, #f2f7fd, #f8fbff); border-radius: 12px; }
.security-note > svg { width: 43px; height: 43px; flex: 0 0 auto; color: var(--blue); }
.security-note strong { font-size: 13px; }
.security-note p { margin: 5px 0 0; color: #526993; font-size: 12px; line-height: 1.55; }

.site-footer { display: flex; align-items: center; justify-content: space-between; min-height: 61px; padding: 0 44px; color: #55709d; background: #fff; font-size: 11px; }
.site-footer strong, .site-footer b { color: var(--navy); }.site-footer b { letter-spacing: .2px; }
.site-footer div, .site-footer nav { display: flex; align-items: center; gap: 17px; }
.site-footer i { width: 1px; height: 15px; background: #7793ba; }
.site-footer a { color: inherit; text-decoration: none; }.site-footer a:hover { color: var(--blue); }

@media (max-width: 1180px) {
  .page-shell { grid-template-columns: 53% 47%; }
  .promo-content { padding-left: 42px; padding-right: 24px; }
  .brand--hero { width: 320px; }
  h1 { font-size: 43px; }
  .promo-copy { font-size: 17px; }
  .benefits { grid-template-columns: repeat(2, 1fr); max-width: 450px; gap: 14px 0; }
  .benefit:nth-child(2) { border-right: 0; }
  .laptop { left: 120px; width: 82%; }
  .login-panel { padding-inline: 24px; }
  .section-label h2 { font-size: 14px; }
}

@media (max-width: 900px) {
  .page-shell { display: block; min-height: auto; }
  .promo-panel { min-height: 1000px; }
  .promo-shade { background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.56)); }
  .login-panel { min-height: 920px; padding-top: 105px; }
  .laptop { left: 25%; bottom: 0; width: 70%; }
  .site-footer { gap: 20px; padding-block: 18px; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .promo-panel { min-height: 820px; }
  .promo-content { padding: 30px 22px 0; }
  .brand--hero { width: 260px; height: 90px; margin-left: -8px; }
  .title-rule { margin-top: 4px; }
  h1 { font-size: 36px; letter-spacing: -1.2px; }
  .promo-copy { font-size: 15px; line-height: 1.5; }.promo-copy br { display: none; }
  .benefits { grid-template-columns: repeat(2, 1fr); margin-top: 25px; }
  .benefit { padding: 0 8px; }
  .handwritten { display: none; }
  .laptop { left: 3%; bottom: 6px; width: 94%; }
  .login-panel { min-height: auto; padding: 96px 14px 32px; }
  .language-wrap { top: 24px; right: 16px; }
  .login-card { min-height: 0; padding: 32px 20px; }
  .eyebrow { letter-spacing: 4px; }
  .brand--card { height: 105px; }
  .section-label { margin: 8px 0 40px; gap: 9px; }
  .section-label h2 { white-space: normal; text-align: center; font-size: 13px; }
  .form-options { align-items: flex-start; flex-direction: column; }
  .security-note { padding: 20px; }
  .security-note p br { display: none; }
  .site-footer { display: block; padding: 20px; line-height: 1.8; }
  .site-footer div, .site-footer nav { flex-wrap: wrap; gap: 8px 14px; }
  .site-footer nav { margin-top: 9px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
