/* Variables pour les couleurs */
:root {
    --primary-color: #6b5b95;
    --secondary-color: #ab47bc;
    --input-border: #c8e6c9;
    --input-focus: #b39ddb;
    --button-primary: #98d8d8;
    --button-hover: #7bc5c5;
}

/* Style global */
body {
    height: 100%;
    margin: 0;
    padding: 10px;
    font-family: 'Segoe UI', sans-serif;
    background: url('Nutrifoodie4.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Assurez que le contenu reste dans le flux normal */
    z-index: 0; /* Assurez que le body est derrière les éléments interactifs */
}

body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://www.transparenttextures.com/patterns/green-dust-and-scratches.png');
    opacity: 0.08;
    z-index: -1; /* Place l'arrière-plan derrière le contenu */
}

/* Conteneur principal */
.auth-container {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 340px;
    width: 80%;
    z-index: 1;
    text-align: center;
    margin-top: 120px;

}

/* Titres */
h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 30px;
}

/* Formulaire */
form {
    text-align: left;
}

label {
    display: block;
    margin-top: 15px;
    color: #444;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    background-color: #f9f9f9;
    margin-top: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input:focus {
    border-color: var(--input-focus);
    outline: none;
}

/* Boutons */
button {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"] {
    background: linear-gradient(to right, var(--button-primary), #b5e6d8);
    color: #fff;
    box-shadow: 0 2px 8px rgba(152, 216, 216, 0.3);
}

button[type="submit"]:hover {
    background: linear-gradient(to right, #b5e6d8, var(--button-primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(152, 216, 216, 0.4);
}

/* Liens */
a {
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    position: relative;
    clear: both;
    z-index: 10;
}

@media screen and (max-width: 768px) {
    html, body {
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
        touch-action: none;
    }
    body {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 0;
        min-height: 100vh;
        padding-bottom: 0;
        position: relative;
    }
    .auth-container {
        padding: 20px;
        border-radius: 12px;
        width: 98%;
        min-width: unset;
        max-width: 98vw;
        box-sizing: border-box;
        margin-top: 120px;
    }
    h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    input, button {
        font-size: 16px;
        padding: 10px;
    }
    button {
        margin-top: 12px;
    }
    footer {
        padding: 12px 0;
        font-size: 14px;
        border-radius: 0;
    }
    label {
        font-size: 15px;
    }
}