/*
═══════════════════════════════════════════════════════════════
ANVEN CONSULTING — STYLES PAGE LOGIN ESPACE CLIENT
═══════════════════════════════════════════════════════════════
*/

/* ─── Variables ─── */
:root {
    --ec-noir: #000000;
    --ec-orange: #f2a833;
    --ec-orange-fonce: #e09420;
    --ec-gris-fonce: #3D3D3D;
    --ec-gris-clair: #f8fafc;
    --ec-blanc: #ffffff;
    --ec-rouge: #e74c3c;
    --ec-vert: #10b981;
    --ec-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ec-radius: 12px;
    --ec-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.login-page {
    font-family: var(--ec-font);
    background: var(--ec-gris-clair);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ─── Container ─── */
.login-container {
    width: 100%;
    max-width: 420px;
}

/* ─── Card ─── */
.login-card {
    background: var(--ec-blanc);
    border-radius: var(--ec-radius);
    box-shadow: var(--ec-shadow);
    padding: 2.5rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ─── Header / Branding ─── */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    margin-bottom: 1.5rem;
}

.login-brand-main {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ec-noir);
    letter-spacing: 0.08em;
    line-height: 1;
}

.login-brand-sub {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ec-orange);
    letter-spacing: 0.04em;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ec-noir);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.875rem;
    color: var(--ec-gris-fonce);
    opacity: 0.7;
}

/* ─── Messages ─── */
.login-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.login-message--error {
    background: rgba(231, 76, 60, 0.08);
    color: var(--ec-rouge);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.login-message--success {
    background: rgba(16, 185, 129, 0.08);
    color: var(--ec-vert);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ─── Formulaire ─── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ec-gris-fonce);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--ec-font);
    color: var(--ec-noir);
    background: var(--ec-blanc);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.form-input:focus {
    border-color: var(--ec-orange);
    box-shadow: 0 0 0 3px rgba(242, 168, 51, 0.15);
}

.form-input:disabled {
    background: var(--ec-gris-clair);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ─── Bouton ─── */
.login-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--ec-orange);
    color: var(--ec-blanc);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--ec-font);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 0.5rem;
}

.login-btn:hover {
    background: var(--ec-orange-fonce);
}

.login-btn:active {
    transform: scale(0.98);
}

.login-btn:focus-visible {
    outline: 2px solid var(--ec-orange);
    outline-offset: 2px;
}

.login-btn:disabled {
    background: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
    transform: none;
}

/* ─── Footer ─── */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.login-back {
    font-size: 0.875rem;
    color: var(--ec-gris-fonce);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.login-back:hover {
    opacity: 1;
}

.login-back:focus-visible {
    outline: 2px solid var(--ec-orange);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
    }

    .login-brand-main {
        font-size: 1.5rem;
    }

    .login-title {
        font-size: 1.25rem;
    }
}
