:root {
    --orange: #E15B11;
    --orange-dark: #C84F0F;
    --gray: #555;
    --bg: #f6f6f6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: var(--bg);
    color: #333;
}

/* ===== HEADER ===== */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--orange);
    color: white;
    padding: 15px 30px;
}

.header img {
    height: 70px;
}

.header-title {
    text-align: center;
    flex: 1;
}

.header-title h1 {
    font-size: 26px;
}

.header-title p {
    font-size: 14px;
    opacity: 0.9;
}

.header-badge {
    background: white;
    color: var(--orange);
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: bold;
}

/* ===== CONTENU ===== */

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background: white;
    border: 1px solid var(--orange);
    border-radius: 6px;
    padding: 30px;
}

.card h2 {
    text-align: center;
    color: var(--orange);
    margin-bottom: 30px;
}

/* ===== GRILLE ===== */

.login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.login-grid h3 {
    margin-bottom: 15px;
    color: var(--orange);
}

/* ===== FORM ===== */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    color: var(--gray);
}

.login-form input {
    margin-top: 5px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-form input:focus {
    outline: none;
    border-color: var(--orange);
}

.login-form button[type="submit"] {
    margin-top: 10px;
    padding: 12px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.login-form button[type="submit"]:hover {
    background: var(--orange-dark);
}

/* ===== MOT DE PASSE ===== */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #999;
}

.toggle-password:hover {
    color: var(--orange);
}

/* ===== AIDE ===== */

.help p {
    margin-bottom: 20px;
}

.help a {
    color: var(--orange);
    font-weight: bold;
    text-decoration: none;
}

.help a:hover {
    text-decoration: underline;
}

/* ===== FOOTER ===== */

.footer {
    text-align: center;
    padding: 20px;
    color: #777;
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 800px) {
    .login-grid {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
