﻿#loginHeading {
    margin-bottom: 14px;
}

/* ===== TYPOGRAPHIE ===== */
h1 {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* ===== CHAMPS ===== */
.field {
    position: relative;
    margin-bottom: 1.5rem;
}

label {
    display: block;
    color: var(--text-main);
    font-size: var(--font-size-sm);
    font-weight: 700;
    margin-bottom: 0.45rem;
    padding-left: 0.15rem;
}

.field-icon {
    position: absolute;
    left: 1rem;
    bottom: 1.05rem;
    color: var(--gray-600);
    font-size: 1.25rem;
    z-index: 3;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.input {
    width: 100%;
    height: 3.25rem;
    padding: 0 1rem 0 2.85rem;
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
    color: var(--gray-900);
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-lg);
    outline: none;
    transition: all var(--transition-fast);
}

    .input::placeholder {
        color: var(--text-placeholder);
        opacity: 0.85;
    }

    .input:hover:not(:focus) {
        border-color: var(--gray-400);
        background: var(--gray-50);
    }

    .input:focus {
        border-color: var(--primary);
        background: var(--white);
        box-shadow: var(--shadow-focus);
    }

        .input:focus ~ .field-icon {
            color: var(--primary-dark);
        }

.toggle-password {
    position: absolute;
    right: 0.75rem;
    bottom: 0.5rem;
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.35rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .toggle-password:hover {
        color: var(--gray-800);
        background: var(--gray-100);
    }

/* ===== META ===== */
.meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}

    .remember input[type="checkbox"] {
        width: 1.1rem;
        height: 1.1rem;
        accent-color: var(--primary);
        cursor: pointer;
    }

    .remember span {
        font-size: var(--font-size-sm);
        color: var(--text-muted);
        user-select: none;
    }

.lost-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 700;
}

    .lost-link:hover {
        color: var(--primary-hover);
        text-decoration: underline;
    }

/* ===== BOUTON ===== */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 3.125rem;
    padding: 0 1.5rem;
    font-size: var(--font-size-sm);
    font-weight: 700;
    font-family: var(--font-family);
    letter-spacing: 0.02em;
    line-height: 1;
    color: var(--white);
    background: var(--gradient-hero);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: filter var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    box-shadow: var(--shadow-button);
}

    .btn-submit:hover {
        filter: brightness(1.08);
        box-shadow: var(--shadow-button-hover);
        transform: translateY(-1px);
    }

    .btn-submit:active {
        transform: scale(0.98) translateY(0);
        box-shadow: none;
    }

    .btn-submit:focus-visible {
        outline: 3px solid var(--primary);
        outline-offset: 2px;
    }

    .btn-submit:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        transform: none;
    }

    .btn-submit .material-icons {
        font-size: 1.1rem;
    }

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loader {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loader {
    display: inline-flex;
}

/* ===== ALERTES ===== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: var(--font-size-sm);
}

    .alert .material-icons {
        font-size: 1.1rem;
        flex-shrink: 0;
        margin-top: 0.05rem;
    }

    .alert p {
        margin: 0;
        color: inherit;
    }

.alert-error {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

/* ===== LOST PASSWORD ===== */
.lost-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

    .lost-heading h2 {
        color: var(--text-main);
        font-size: var(--font-size-base);
    }

    .lost-heading .material-icons {
        color: var(--primary-dark);
    }

.lost-hint {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: 1.5rem;
}

.lost-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.lost-validate {
    flex: 1;
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0 1rem;
    background: var(--gray-100);
    color: var(--text-main);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    height: 3.125rem;
}

    .btn-cancel:hover {
        background: var(--gray-200);
        text-decoration: none;
    }

/* ===== LOCKED ===== */
.locked-user {
    display: flex;
    padding: 0 0.5rem 1.2rem 0;
    width: 100%;
}

.locked-avatar {
    width: 54px;
    height: 54px;
    background: var(--primary-subtle);
    border: 2px solid rgba(32, 167, 173, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary);
}

    .locked-avatar .material-icons {
        font-size: 1.5rem;
    }

.locked-user strong {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.3rem;
}

.locked-user p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

    .locked-user p a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
        margin-left: 0.35rem;
    }

        .locked-user p a:hover {
            text-decoration: underline;
        }

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .lost-actions {
        flex-direction: column;
    }

    .btn-cancel {
        height: 3.25rem;
        width: 100%;
    }
}
