/* ── Pages d'authentification (connexion, inscription, mot de passe, OTP) ── */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    min-height: 100vh;
    display: flex;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #F0F5F2;
}

/* ── Panneau gauche ───────────────────────────── */
.login-brand {
    width: 45%;
    background: #026829;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

/* Cercles décoratifs */
.login-brand::before {
    content: '';
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    border: 60px solid rgba(255,255,255,.06);
    bottom: -120px; left: -100px;
}

.login-brand::after {
    content: '';
    position: absolute;
    width: 260px; height: 260px;
    border-radius: 50%;
    border: 40px solid rgba(255,255,255,.05);
    top: -80px; right: -60px;
}

.brand-logo-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 32px;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.brand-logo-wrap img { height: 72px; width: auto; display: block; }

.brand-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 12px;
}

.brand-subtitle {
    color: rgba(255,255,255,.72);
    font-size: .88rem;
    text-align: center;
    line-height: 1.6;
    max-width: 320px;
}

.brand-stripe {
    display: flex;
    gap: 6px;
    margin-top: 36px;
}

.brand-stripe span {
    display: block;
    height: 4px;
    border-radius: 2px;
}

.stripe-green  { background: #5B9D74; width: 40px; }
.stripe-yellow { background: #FEBF02; width: 24px; }
.stripe-red    { background: #EB0000; width: 24px; }

/* ── Panneau droit ────────────────────────────── */
.login-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    overflow-y: auto;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.login-card.login-card-wide { max-width: 560px; }

.login-card-header {
    margin-bottom: 32px;
}

.login-card-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1C2B22;
    margin-bottom: 6px;
}

.login-card-header p {
    font-size: .875rem;
    color: #6B8573;
}

.form-label-login {
    font-size: .82rem;
    font-weight: 600;
    color: #3A5040;
    margin-bottom: 6px;
    display: block;
}

.input-login {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #D0E0D8;
    border-radius: 8px;
    font-size: .9rem;
    color: #1C2B22;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}

.input-login:focus {
    border-color: #026829;
    box-shadow: 0 0 0 3px rgba(2,104,41,.12);
}

.input-login.is-invalid { border-color: #C0392B; }

.input-group-login {
    position: relative;
}

.input-group-login .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8AAF96;
    pointer-events: none;
}

.input-group-login .input-login {
    padding-left: 38px;
}

.select-login {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #D0E0D8;
    border-radius: 8px;
    font-size: .9rem;
    color: #1C2B22;
    background: #fff;
    outline: none;
}

.select-login:focus {
    border-color: #026829;
    box-shadow: 0 0 0 3px rgba(2,104,41,.12);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: #026829;
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .1s;
    letter-spacing: .02em;
}

.btn-login:hover  { background: #228B50; }
.btn-login:active { transform: translateY(1px); }

.btn-login:disabled,
.btn-login.btn-login-disabled {
    opacity: .55;
    cursor: not-allowed;
}

.btn-login-outline {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #026829;
    font-size: .9rem;
    font-weight: 700;
    border: 1.5px solid #026829;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s;
}

.btn-login-outline:hover { background: #EBF3EE; }

.divider-line {
    border: none;
    border-top: 1px solid #E4EDE8;
    margin: 24px 0;
}

.login-footer-link {
    font-size: .82rem;
    color: #6B8573;
    text-align: center;
}

.login-footer-link a {
    color: #026829;
    font-weight: 600;
    text-decoration: none !important;
}

.login-footer-link a:hover { text-decoration: underline !important; }

.forgot-link {
    font-size: .8rem;
    color: #6B8573;
    text-decoration: none !important;
}
.forgot-link:hover { color: #026829; }

.checkbox-label {
    font-size: .82rem;
    color: #3A5040;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: #026829;
    width: 15px; height: 15px;
}

.login-countdown {
    font-size: .82rem;
    color: #6B8573;
    text-align: center;
    margin-top: 16px;
}

.login-countdown strong { color: #C0392B; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
    body { flex-direction: column; }
    .login-brand {
        width: 100%;
        padding: 32px 24px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
    }
    .login-brand::before, .login-brand::after { display: none; }
    .brand-logo-wrap { margin-bottom: 0; }
    .brand-logo-wrap img { height: 44px; }
    .brand-title { font-size: .95rem; text-align: left; margin-bottom: 0; }
    .brand-subtitle, .brand-stripe { display: none; }
    .login-panel { padding: 32px 20px; }
}
