/* ===== VARIABLES ===== */
:root {
    --primary: #f7941d;
    --primary-dark: #e68310;
    --text: #333;
    --bg-overlay: rgba(255, 255, 255, 0.6);
    --glass: rgba(255, 200, 100, 0.55);
    --border: #f7941d;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BODY ===== */
body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background: #000000; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgb(255, 207, 49);
    z-index: -1;
}

/* ===== TITLE ===== */
h1 {
    margin-top: 30px;
    font-size: clamp(32px, 5vw, 48px);
    color: var(--text);
}

/* ===== CONTAINER ===== */
.login-container {
    position: relative;
    width: min(90%, 400px);
    margin-top: 40px;
    padding: 30px;
    border: 3px solid var(--border);
    border-radius: 12px;

    /* Glass effect amélioré */
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Ombre moderne */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);

    text-align: center;

    /* Animation entrée */
    animation: fadeIn 0.6s ease;
}

/* Effet alvéoles subtil */
.login-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.2) 1px, transparent 0);
    background-size: 20px 20px;
    border-radius: 12px;
    pointer-events: none;
}

/* ===== TITRE SECTION ===== */
.login-container h2 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 20px;
}

/* ===== FORM ===== */
.login-container label {
    display: block;
    text-align: left;
    margin: 10px 0 5px;
    font-weight: bold;
    color: var(--text);
}

/* Inputs */
.login-container input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    font-size: 14px;

    transition: 0.3s;
}

/* Focus propre */
.login-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(247,148,29,0.5);
}

/* ===== OPTIONS ===== */
.options {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 15px;
}

/* ===== BUTTON ===== */
.login-container button {
    width: 100%;
    background: var(--primary);
    border: none;
    color: white;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;

    transition: all 0.3s ease;
}

/* Hover + effet lift */
.login-container button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===== ERROR ===== */
.error {
    color: red;
    margin-top: 10px;
    font-weight: bold;
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}