/* Reset léger */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* Fond global */
.auth-container-wrapper {
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px; /* évite que ça colle aux bords sur mobile */
}

/* Carte principale */
.auth-container {
    background: #fff;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
}

/* Titres */
.auth-container h1 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #1f2937;
}

.auth-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1f2937;
}

/* Texte */
.auth-container label {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 16px;
    margin-bottom: 5px;
}

/* Inputs */
.auth-container input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    transition: border 0.2s, box-shadow 0.2s;
}

/* Focus input */
.auth-container input:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Bouton */
.auth-container button {
    width: 100%;
    background: #4f46e5;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.auth-container button:hover {
    background: #4338ca;
}

.auth-container button:active {
    transform: scale(0.98);
}

/* Message erreur */
.auth-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Message info */
.auth-info {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

/* Code 2FA */
.auth-code {
    letter-spacing: 8px;
    text-align: center;
    font-size: 20px; /* légèrement plus lisible */
}

/* Footer */
.auth-footer {
    margin-top: 15px;
    font-size: 13px;
    color: #9ca3af;
}

/* ======== */
/*  MOBILE  */
/* ======== */
@media (max-width: 768px) {
    .auth-container {
        width: 100%;
        max-width: 400px;
        padding: 25px;
        border-radius: 14px;
    }

    .auth-container h1 {
        font-size: 24px;
    }

    .auth-container h2 {
        font-size: 20px;
    }

    .auth-container input {
        font-size: 16px;
        padding: 14px;
    }

    .auth-container button {
        font-size: 16px;
        padding: 14px;
    }

    .auth-code {
        font-size: 22px;
        letter-spacing: 6px;
    }
}

/* ============================ */
/*  PETITS ÉCRANS (téléphones)  */
/* ============================ */
@media (max-width: 480px) {
    .auth-container {
        width: 100%;
        padding: 20px;
        box-shadow: none;
    }

    .auth-container h1 {
        font-size: 22px;
    }

    .auth-container h2 {
        font-size: 18px;
    }

    .auth-footer {
        font-size: 12px;
    }
}
