/* RESET */
* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* BODY */
body {
    margin: 0;
    background: linear-gradient(180deg, #e6f1f1 0%, #f5f7f9 100%);
    color: #333;
}

/* HEADER */
.header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #008080;
    color: white;
    padding: 25px;
}

.header img {
    height: 65px;
    position: absolute;
    left: 25px;
}

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

.header-title h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: 1px;
}

.header-title p {
    margin: 4px 0 0;
    font-size: 14px;
}

.header-badge {
    position: absolute;
    right: 25px;
    background: rgba(255,255,255,0.18);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}

/* CONTAINER */
.container {
    display: flex;
    justify-content: center;
    padding: 70px 20px;
}

/* CARD */
.card {
    position: relative;
    background: white;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
    padding: 60px 50px 45px;
    max-width: 900px;
    width: 100%;
}

/* ILLUSTRATION CSS */
.card::before {
    content: "??";
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: #008080;
    color: white;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* TITRE */
.card h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 40px;
    color: #008080;
}

.card h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: #008080;
    margin: 14px auto 0;
    border-radius: 2px;
}

/* GRID */
.login-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
}

/* FORMULAIRE */
.login-form {
    background: #f8fbfb;
    padding: 30px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px #ddeeee;
}

.login-form label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #008080;
    margin-bottom: 18px;
}

/* PASSWORD + ICONE */
.password-wrapper {
    position: relative;
}

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

/* INPUTS */
.login-form input {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    margin-top: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.login-form input:focus {
    outline: none;
    border-color: #008080;
}

/* ICONE OEIL */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 38px;
    cursor: pointer;
    font-size: 20px;
    user-select: none;
}

/* BOUTON */
.login-form button {
    display: block;
    width: 70%;
    margin: 30px auto 0;
    background: #008080;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 1px;
}

.login-form button:hover {
    background: #006666;
}

/* AIDE */
.help {
    padding-left: 30px;
    border-left: 4px solid #008080;
}

.help h3 {
    margin-top: 0;
    color: #008080;
}

.help p {
    font-size: 14px;
}

.help a {
    color: #008080;
    font-weight: bold;
    text-decoration: none;
}

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

/* FOOTER */
.footer {
    margin-top: 50px;
    background: #008080;
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 12px;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .card {
        padding: 55px 25px 35px;
    }

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

    .help {
        padding-left: 0;
        border-left: none;
        border-top: 3px solid #008080;
        padding-top: 25px;
    }

    .login-form button {
        width: 100%;
    }
}