/* login.css — page de connexion (design premium, scope propre à cette page) */

.login-page,
.login-page *,
.login-page *::before,
.login-page *::after {
    box-sizing: border-box;
}

.login-page {
    min-height: 100vh;
    display: flex;
    background-color: #F8F9FA;
    font-family: 'Inter', 'Roboto', sans-serif;
}

/* ---------- Panneau de marque (gauche) ---------- */
.login-brand {
    position: relative;
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 64px;
    color: #fff;
    background: linear-gradient(160deg, rgba(0, 8, 158, 0.92) 0%, rgba(0, 71, 171, 0.88) 55%, rgba(0, 71, 171, 0.75) 100%),
                url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
    overflow: hidden;
}

.login-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.12), transparent 45%);
    pointer-events: none;
}

.login-brand-top {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.login-brand-top img {
    height: 44px;
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
}

.login-brand-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.login-brand-name small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.75;
    letter-spacing: 0.4px;
}

.login-brand-middle {
    position: relative;
    z-index: 1;
    max-width: 440px;
}

.login-brand-middle h2 {
    color: #fff;
    font-size: 34px;
    line-height: 1.25;
    margin: 0 0 18px;
    font-weight: 700;
}

.login-brand-middle p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.login-brand-features {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
}

.login-brand-features .icon-dot {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-brand-bottom {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Panneau formulaire (droite) ---------- */
.login-form-panel {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background-color: #FFFFFF;
}

.login-form-wrap {
    width: 100%;
    max-width: 380px;
}

.login-form-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 28px;
}

.login-form-mobile-logo img {
    height: 40px;
}

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

.login-form-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.login-form-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.login-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-group .field-icon {
    position: absolute;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    pointer-events: none;
}

.login-input-group input {
    width: 100%;
    padding: 13px 14px 13px 44px;
    border: 1px solid #E1E5EA;
    border-radius: 10px;
    font-size: 14px;
    background-color: #F9FAFB;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-input-group input:focus {
    outline: none;
    border-color: #0047AB;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.12);
}

.login-input-group .toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 6px;
    display: flex;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 6px;
}

.login-input-group .toggle-password:hover {
    color: #0047AB;
    background-color: rgba(0, 71, 171, 0.08);
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #991b1b;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
}

.login-submit {
    width: 100%;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    background: linear-gradient(135deg, #0047AB 0%, #00089e 100%);
    box-shadow: 0 8px 20px rgba(0, 71, 171, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.login-submit:hover {
    filter: brightness(1.06);
    box-shadow: 0 10px 24px rgba(0, 71, 171, 0.34);
}

.login-submit:active {
    transform: translateY(1px);
}

.login-footer {
    text-align: center;
    margin-top: 22px;
}

.login-footer a {
    font-size: 13.5px;
    font-weight: 500;
    color: #0047AB;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .login-brand {
        display: none;
    }

    .login-form-mobile-logo {
        display: block;
    }

    .login-form-panel {
        padding: 48px 24px;
    }
}

@media (max-width: 420px) {
    .login-form-header h1 {
        font-size: 22px;
    }
}
