/* ═════════════════════════════════════════════
   /css/login.css
   Page de connexion + reset password
   ═════════════════════════════════════════════ */

.login-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--c-surface, #ffffff);
    border: 1px solid var(--c-border, #e8eaef);
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem;
    box-shadow:
        0 1px 2px rgba(26, 47, 79, 0.04),
        0 12px 32px rgba(26, 47, 79, 0.08);
}

.lock-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--c-surface-2, #f6f7fb);
    border: 1px solid var(--c-border, #e8eaef);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.4rem;
}

.login-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 0.4rem;
    color: var(--c-navy, #1a2f4f);
    letter-spacing: -0.01em;
}

.login-card .subtitle {
    text-align: center;
    color: var(--c-text-muted, #5a6478);
    font-size: 0.95rem;
    margin: 0 0 2rem;
    line-height: 1.5;
}

/* ── Champs ── */
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-text, #1a2332);
}
.form-group input {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--c-border, #e8eaef);
    border-radius: 10px;
    background: var(--c-surface, #ffffff);
    color: var(--c-text, #1a2332);
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.form-group input::placeholder {
    color: #a8b0bd;
}
.form-group input:hover {
    border-color: #d4d8e0;
}
.form-group input:focus {
    outline: none;
    border-color: var(--c-navy, #1a2f4f);
    box-shadow: 0 0 0 3px rgba(26, 47, 79, 0.12);
}

/* ── Bouton principal ── */
.btn-submit {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: none;
    background: var(--c-navy, #1a2f4f);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    margin-top: 0.5rem;
    letter-spacing: 0.01em;
}
.btn-submit:hover {
    background: var(--c-navy-soft, #2c4a6e);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(26, 47, 79, 0.18);
}
.btn-submit:active {
    transform: translateY(0);
}
.btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Messages ── */
.form-message {
    margin-top: 0.85rem;
    padding: 0.75rem 0.95rem;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.45;
    display: none;
}
.form-message.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.form-message.success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* ── Liens footer card ── */
.login-footer {
    margin-top: 1.1rem;
    text-align: center;
    font-size: 0.9rem;
}
.login-footer a {
    color: var(--c-navy, #1a2f4f);
    text-decoration: none;
    font-weight: 500;
}
.login-footer a:hover {
    text-decoration: underline;
}

.login-footnote {
    margin-top: 1.75rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--c-text-muted, #5a6478);
}
.login-footnote a {
    color: var(--c-navy, #1a2f4f);
    text-decoration: none;
    font-weight: 500;
}
.login-footnote a:hover {
    text-decoration: underline;
}

.reset-intro {
    color: var(--c-text-muted, #5a6478);
    font-size: 0.92rem;
    margin: 0 0 1.4rem;
    line-height: 1.5;
}

/* ── Switch entre vues login / reset ── */
#view-reset { display: none; }
#view-login.active,
#view-reset.active { display: block; }

/* ── Responsive ── */
@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem 1.75rem;
        border-radius: 14px;
    }
    .login-card h1 { font-size: 1.35rem; }
    .lock-badge {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* ── Indication discrète sous un champ ── */
.hint {
    font-size: 0.8rem;
    color: var(--c-text-muted, #5a6478);
    margin: 0.4rem 0 0;
    line-height: 1.4;
}