@import url('hecm-type.css?v=1');
/* ============================================================
   HECM Parakou — Pages de connexion : même univers que la page d'accueil
   (photo du campus + voile vert, navigation translucide, mascotte Hecmo,
   carte « verre »). Activé par <body class="auth"> + structure .auth-wrap.
   ============================================================ */
body.auth {
    margin: 0; padding-top: 0 !important; min-height: 100vh; position: relative; color: #13261a;
    font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
    background: #0b2f15 url('../assets/images/campus.jpg') center / cover no-repeat fixed !important;
}
body.auth::before {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(100deg, rgba(8,36,16,.94) 0%, rgba(13,58,25,.8) 45%, rgba(13,58,25,.5) 100%);
}

/* ── Navigation (identique à l'accueil) ── */
.hn { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px,4vw,48px); transition: background .3s, box-shadow .3s, padding .3s; }
.hn.solid { background: rgba(11,47,21,.92); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0,0,0,.18); padding-top: 10px; padding-bottom: 10px; }
.hn .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.12rem; letter-spacing: .2px; border: 0; padding: 0; height: auto; }
.hn .brand img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.hn ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.hn ul a { color: rgba(255,255,255,.9); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 9px 14px; border-radius: 10px; transition: background .2s; display: inline-flex; gap: 7px; align-items: center; }
.hn ul a:hover { background: rgba(255,255,255,.14); color: #fff; }
.hn ul a.cta { background: #fff; color: #124d22; }
.hn ul a.cta:hover { background: #7fff9e; }
.hn .burger { display: none; background: transparent; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; padding: 6px 10px; }

/* ── Disposition : illustration + carte ── */
.auth-wrap {
    position: relative; z-index: 1; min-height: 100vh; max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(20px, 4vw, 64px);
    padding: 110px clamp(18px,5vw,56px) 90px;
}
.auth-side { position: relative; color: #fff; }
.auth-badge { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); padding: 7px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; margin-bottom: 20px; }
.auth-badge i { color: #7fff9e; }
.auth-side h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; line-height: 1.04; letter-spacing: -1px; margin: 0 0 14px; text-shadow: 0 4px 24px rgba(0,0,0,.25); color: #fff; }
.auth-side h1 span { color: #7fff9e; }
.auth-side > p { font-size: 1.05rem; opacity: .9; max-width: 520px; line-height: 1.65; margin: 0 0 22px; }
.auth-perks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; max-width: 460px; }
.auth-perks li { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 10px 14px; font-size: .92rem; font-weight: 500; backdrop-filter: blur(6px); }
.auth-perks i { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2e9e4f, #1a6b2f); color: #fff; flex-shrink: 0; font-size: .85rem; }
.auth-art { position: absolute; right: -10px; bottom: -70px; width: min(300px, 26vw); opacity: .98; pointer-events: none; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
.auth-art svg { width: 100%; height: auto; display: block; }
.auth-main { position: relative; display: flex; flex-direction: column; align-items: center; }
.auth-main > div { width: 100%; max-width: 470px; }
.auth-main .login-card { color: #13261a; position: relative; overflow: visible !important; margin-top: 44px; }
.auth-main .login-card .card-header { border-radius: 26px 26px 0 0 !important; padding-top: 50px !important; }
.auth-main .login-card .card-body { color: #13261a; }
.auth-mascot {
    position: absolute; left: 50%; top: -44px; transform: translateX(-50%); width: 92px; height: 92px; border-radius: 50%; z-index: 3;
    background: #fff; box-shadow: 0 0 0 5px rgba(127,255,158,.55), 0 14px 30px rgba(0,0,0,.3); animation: auth-bob 3.6s ease-in-out infinite;
}
.auth-mascot svg { width: 100%; height: 100%; display: block; }
@keyframes auth-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -7px); } }
.auth-main .back-link { text-align: center; margin-top: 18px; }
.auth-main .back-link a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: .9rem; }
.auth-main .back-link a:hover { color: #7fff9e; }
.auth-wave { position: fixed; z-index: 1; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 80px); pointer-events: none; }
.auth-wave path { fill: rgba(255,255,255,.07); }

@media (max-width: 960px) {
    .auth-wrap { grid-template-columns: 1fr; padding-top: 96px; gap: 0; }
    .auth-side { display: none; }
    .hn .burger { display: block; }
    .hn ul { position: fixed; top: 64px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; background: rgba(11,47,21,.97); border-radius: 16px; padding: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.3); display: none; }
    .hn.open ul { display: flex; }
    .hn.open { background: rgba(11,47,21,.95); }
    .hn ul a { padding: 13px 14px; }
}
@media (prefers-reduced-motion: reduce) { .auth-mascot { animation: none; } }

/* Ajustements : l'illustration ne recouvre jamais la liste */
.auth-perks { max-width: 400px; }
.auth-art { width: 250px; right: 0; bottom: -40px; }
@media (max-width: 1180px) { .auth-art { display: none; } }

/* Carte nette et lisible (fond blanc franc, sans transparence) */
body.auth .login-card { background: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border: 0 !important; }
body.auth .login-card .card-header { background: linear-gradient(135deg, #0b2f15, #1a6b2f) !important; }
body.auth .login-card .card-header h4 { color: #fff !important; }

/* ── Pages « carte seule » : inscription, mot de passe, photo de profil ── */
.auth-single { position: relative; z-index: 1; min-height: 100vh; padding: 104px 16px 90px; display: flex; flex-direction: column; align-items: center; }
.auth-single > .container, .auth-single > .profile-container, .auth-single > .pw-card { width: 100%; }
body.auth .pw-card, body.auth .profile-container .card, body.auth .card.shadow { border: 0 !important; border-radius: 26px !important; box-shadow: 0 30px 80px rgba(8,36,16,.4) !important; }
body.auth .pw-card { margin-top: 0 !important; }
body.auth .login-container { min-height: 0 !important; padding: 0 !important; }
body.auth .login-card .card-header { background: linear-gradient(135deg, #0b2f15, #1a6b2f) !important; }
body.auth .navbar, body.auth .navbar-hecm { display: none !important; }
.auth-single > * { width: 100%; }
.auth-single > .login-container { display: block !important; }
.auth-single .pw-card, .auth-single .profile-container { margin-left: auto; margin-right: auto; }
