/* 🔹 Body et base */
body {
    background: linear-gradient(120deg, #74ebd5 0%, #ACB6E5 100%);
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem; /* petit padding pour mobile */
    overflow-x: hidden; /* empêche débordement horizontal */
    box-sizing: border-box;
}

/* 🔹 Container pour centrer verticalement */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 0.5rem;
    box-sizing: border-box;
}

/* 🔹 Formulaire général */
form {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 1.2rem;
}

label {
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    color: #555;
    font-weight: 500;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    padding: 0.7rem;
    border: 1px solid #b2bec3;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: border 0.2s;
    width: 100%;
    box-sizing: border-box;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    border: 1.5px solid #74b9ff;
    outline: none;
}

button[type="submit"] {
    margin-top: 1rem;
    padding: 0.7rem;
    background: #74b9ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

button[type="submit"]:hover {
    background: #0984e3;
}

/* 🔹 Login card */
.login-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
}

/* 🔹 Avatar */
.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 🔹 Subtitle */
.subtitle {
    color: #666;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* 🔹 Options */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0 0.5rem 0;
    width: 100%;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.options .forgot {
    color: #0984e3;
    text-decoration: none;
    font-size: 0.95rem;
}

.options .forgot:hover {
    text-decoration: underline;
}

/* 🔹 Register */
.register {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.97rem;
}

.register a {
    color: #0984e3;
    text-decoration: none;
    margin-left: 0.3rem;
}

.register a:hover {
    text-decoration: underline;
}

/* 🔹 Footer */
.footer {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: #777;
}

/* 🔹 Responsive pour mobile */
@media (max-width: 600px) {
    .login-card {
        padding: 1.2rem 1rem; /* réduit padding pour tenir sur mobile */
        max-width: 100%;
    }

    .options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    button[type="submit"] {
        font-size: 0.9rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }
}
