/* ============================================================
   login.css — Page de connexion Komsolution Design System
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--ds-font-sans);
    min-height: 100vh;
    margin: 0;
}

#loginPage {
    display: flex;
    min-height: 100vh;
    background: var(--ds-creme);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
    max-width: 450px;
}

.logos-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logos-top img {
    height: auto;
    max-height: 60px;
}

.logos-top img:first-child {
    max-height: 130px;
}

.logos-top img:last-child {
    max-height: 50px;
}

.login-container {
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h1 {
    color: var(--ds-text);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
}

.login-header p {
    color: var(--ds-text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(255,255,255,0.8);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ds-text-secondary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(255,255,255,0.9);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--ds-text);
}

.form-input::placeholder {
    color: var(--ds-text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--ds-bleu);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(133, 167, 215, 0.2);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ds-text-muted);
    cursor: pointer;
    padding: 5px;
    font-size: 18px;
}

.toggle-password:hover {
    color: var(--ds-text-secondary);
}

.remember-me {
    text-align: center;
    margin-bottom: 20px;
}

.remember-me label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ds-text-secondary);
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--ds-bleu-profond);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--ds-bleu-profond);
    color: var(--ds-blanc);
    border: none;
    border-radius: var(--ds-radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(74, 110, 138, 0.3);
}

.btn-login:hover {
    background: #3D5E78;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 110, 138, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.error-message {
    background: var(--ds-danger-light);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--ds-danger);
    padding: 10px;
    border-radius: var(--ds-radius-md);
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 480px) {
    .main-container {
        max-width: 100%;
    }

    .login-container {
        padding: 30px 25px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .logos-top img:first-child {
        max-height: 60px;
    }

    .logos-top img:last-child {
        max-height: 35px;
    }
}
