* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: 'Nunito Sans', 'Segoe UI', sans-serif; color: #0d2350; background: #fff; }

.login { display: grid; grid-template-columns: 63.3fr 36.7fr; min-height: 100vh; }

/* Panneau gauche : visuel Dakar 2026 */
.hero {
  background: #0450a0 url("../img/login-hero.dd1c0add7a99.jpg") left center / cover no-repeat;
  min-height: 100vh;
  position: relative;
}
.hero .ayo { position: absolute; right: 5%; bottom: 3%; height: 36%; max-height: 340px; filter: drop-shadow(0 14px 20px rgba(0,0,0,.4)); }

/* Panneau droit : formulaire */
.panel { position: relative; display: flex; flex-direction: column; background: #fff; }
.corner { position: absolute; top: 0; left: 0; width: 88px; height: auto; pointer-events: none; }

.brand { display: flex; justify-content: flex-end; padding: 47px 47px 0; }
.brand img { height: 78px; width: auto; display: block; }

.form-wrap { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 72px 47px 40px 60px; }
@media (min-width: 1300px) { .form-wrap { max-width: none; padding-left: 62px; padding-right: 47px; } }

h1 { margin: 0 0 50px; font-size: 34px; font-weight: 800; color: #0d2a5c; letter-spacing: -.3px; }

label { display: block; font-weight: 700; font-size: 17px; color: #0d2a5c; margin: 0 0 9px; }

.field { position: relative; margin-bottom: 34px; }
.field .ico { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px;
  transform: translateY(-50%); fill: #4d5d7a; }
.field input {
  width: 100%; height: 56px; padding: 0 54px 0 58px; font: inherit; font-size: 16px; color: #0d2350;
  border: 1px solid #cfd6e2; border-radius: 6px; background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #7d889c; }
.field input:focus { border-color: #1258c8; box-shadow: 0 0 0 3px rgba(18, 88, 200, .15); }

.eye { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); border: 0;
  background: none; padding: 6px; cursor: pointer; color: #4d5d7a; display: flex; }
.eye svg { width: 22px; height: 22px; }
.eye.on .slash { display: none; }

.remember { display: flex; align-items: center; gap: 12px; font-weight: 400; font-size: 16px;
  margin: -6px 0 32px; cursor: pointer; }
.remember input { width: 20px; height: 20px; margin: 0; accent-color: #1258c8; cursor: pointer; }
.options { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.oubli { font-size: 15px; color: #1258c8; font-weight: 600; text-decoration: none; margin-top: -4px; }
.oubli:hover { text-decoration: underline; }

/* Pages mot de passe (choix, oubli) */
.field.simple input { padding-left: 18px; }
.info { font-size: 16px; line-height: 1.5; color: #2c3a55; margin: -30px 0 30px; }
.info + .info, form + .info, .alert + .info { margin-top: 0; }
.info a { color: #1258c8; font-weight: 600; }
a.submit { text-decoration: none; }

.submit {
  width: 100%; height: 60px; display: flex; align-items: center; justify-content: center; gap: 14px;
  border: 0; border-radius: 6px; background: #1258c8; color: #fff; font: inherit; font-weight: 700;
  font-size: 19px; cursor: pointer; transition: background .15s;
}
.submit:hover { background: #0d48a8; }
.submit svg { width: 26px; height: 26px; }

.separator { display: flex; align-items: center; gap: 14px; margin-top: 40px; color: #5c6a85; font-size: 15px; }
.separator::before, .separator::after { content: ''; flex: 1; height: 1px; background: #cfd6e2; }

.alert { background: #fdecec; border: 1px solid #f3b5b5; color: #a12424; padding: 12px 16px;
  border-radius: 6px; margin: -24px 0 24px; font-size: 15px; }

footer {
  background: #f1f6fc; padding: 34px 20px; text-align: center; font-size: 14px; color: #0d2a5c;
}
footer i { font-style: normal; margin: 0 10px; }
footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.foot-logo { height: 24px; width: auto; }

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .hero { min-height: 52vw; background-position: left top; }
  .brand { padding: 24px 16px 0; }
  .brand img { height: 54px; }
  .hero .ayo { height: 45%; right: 3%; }
  .form-wrap { padding: 32px 16px; }
  h1 { font-size: 26px; margin-bottom: 30px; }
}
