/* Pages d'authentification (connexion, inscription) — même palette et police que theme-sobre.css */
@font-face {
    font-family: "Mulish";
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url("../../fonts/mulish/mulish-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Mulish";
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url("../../fonts/mulish/mulish-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --app-navy: #1e3a5f;
    --app-bg: #f3f5f8;
    --app-surface: #ffffff;
    --app-border: #e1e6ed;
    --app-border-strong: #cbd3de;
    --app-text: #1f2933;
    --app-text-2: #3d4f66;
    --app-muted: #6b7f99;
    --app-accent: #3b6ea5;
    --app-accent-hover: #2f5a89;
    --app-accent-soft: #eaf1f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Mulish", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background: var(--app-bg);
    color: var(--app-text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

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

.login-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    padding: 36px;
}

.card-content {
    position: relative;
}

.logo {
    text-align: center;
    margin-bottom: 28px;
}

.logo i {
    font-size: 22px;
    color: var(--app-accent);
    background: var(--app-accent-soft);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 14px;
}

.logo h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--app-navy);
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.logo p {
    color: var(--app-muted);
    font-size: 14px;
}

.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--app-text-2);
    font-size: 13px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--app-muted);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1px solid var(--app-border-strong);
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--app-surface);
    color: var(--app-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--app-accent);
    box-shadow: 0 0 0 3px rgba(59, 110, 165, 0.15);
}

.form-control::placeholder {
    color: #9ca3af;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--app-muted);
    cursor: pointer;
    font-size: 14px;
}

.password-toggle i {
    position: static;
    transform: none;
}

.btn-login {
    width: 100%;
    padding: 11px;
    background: var(--app-accent);
    border: 1px solid var(--app-accent);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background-color 0.15s ease;
}

.btn-login:hover,
.btn-login:focus {
    background: var(--app-accent-hover);
    outline: none;
}

.links {
    display: flex;
    justify-content: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--app-border);
}

.links a {
    text-decoration: none;
    color: var(--app-text-2);
    font-size: 13px;
    display: flex;
    align-items: center;
}

.links a:hover {
    color: var(--app-accent);
}

.links a i {
    margin-right: 6px;
    font-size: 12px;
}

.alert {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert ul {
    padding-left: 16px;
}

.alert-success {
    background-color: #ecf5f0;
    border: 1px solid #c6e0d2;
    color: #235c40;
}

.alert-danger {
    background-color: #fbeeed;
    border: 1px solid #eec8c5;
    color: #8a1c16;
}

.alert i {
    font-size: 16px;
    margin-top: 1px;
}

.close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
}

.footer {
    text-align: center;
    margin-top: 20px;
    color: var(--app-muted);
    font-size: 12px;
}

@media (max-width: 576px) {
    .login-card {
        padding: 26px 20px;
    }

    .links {
        flex-direction: column;
        gap: 10px;
    }

    .links a {
        justify-content: center;
    }
}
