﻿:root {
    --progest-blue: #004a99;
    --progest-blue-dark: #003366;
    --progest-error: #d32f2f;
    --progest-bg: #f4f7f9;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--progest-bg);
    padding: 20px;
}

.progest-card {
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

.progest-header {
    background: linear-gradient(135deg, var(--progest-blue), var(--progest-blue-dark));
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

    .progest-header h1 {
        font-weight: 800;
        letter-spacing: 2px;
        text-transform: uppercase;
        margin-bottom: 0.5rem;
    }

.input-wrapper {
    position: relative;
    margin-top: 30px;
}

    .input-wrapper label {
        position: absolute;
        left: 0;
        top: 10px;
        color: #757575;
        transition: all 0.2s ease;
        pointer-events: none;
    }
    .input-wrapper::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--progest-blue);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .input-wrapper:focus-within::after {
        width: 100%;
        left: 0;
    }

    /* Animation Material Focus */
    .input-wrapper.has-value label,
    /* Remplacez l'ancien sélecteur .input-wrapper.has-value par celui-ci */
    /* 1. Si le champ est focus OU s'il n'est pas vide (le placeholder n'est pas affiché) */
    .form-control:focus + label,
    .form-control:not(:placeholder-shown) + label {
        top: -20px;
        font-size: 13px;
        color: var(--progest-blue);
        font-weight: 700;
    }

/* 2. Cacher le placeholder par défaut pour qu'il ne gêne pas */
.form-control::placeholder {
    color: transparent;
}

.form-control {
    width: 100%;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    padding: 10px 0;
    font-size: 16px;
    background: transparent;
    transition: border-color 0.3s;
}

    .form-control:focus {
        outline: none;
        border-bottom-color: var(--progest-blue);
    }

.btn-progest {
    width: 100%;
    height: 55px;
    background: var(--progest-blue);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 74, 153, 0.3);
}

    .btn-progest:hover:not(:disabled) {
        background: var(--progest-blue-dark);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 74, 153, 0.4);
    }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
