/* File: src/main/resources/public/css/auth.css (SOLO PER LOGIN E REGISTRAZIONE) */

/* --- STILI GENERALI (Per le sole pagine auth) --- */
body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a2e;
    color: #e0e0e0;
    min-height: 100vh;
    margin: 0;
    width: 100%;

    /* Centratura Flexbox potenziata */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    padding-bottom: 20vh; /* La centratura rialzata */
}

/* Stili per il wrapper di Login e Registrazione */
.login-container,
.register-container {
    background-color: #0f3460;
    padding: 40px; /* Padding interno generoso */
    border-radius: 12px;
    max-width: 550px; /* Larghezza massima voluta per il form */
    min-height: 300px; /* Altezza minima voluta per il form */
    width: 90%;
    text-align: center;
    margin: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
    border: 2px solid #e94560;
    box-sizing: border-box;
}

h2 {
    color: #e94560;
    margin-bottom: 25px;
    border-bottom: 1px solid #4a4a4a;
    padding-bottom: 15px;
    font-size: 2em;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #f7f7f7;
    text-align: left;
    font-size: 1.1em;
}

input,
input[type="password"],
input[type="number"],
select {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 0 auto;
    box-sizing: border-box;
    padding: 16px; /* Input più grandi */
    font-size: 1.2em;
    background-color: #1a1a2e;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    color: #e0e0e0;
}

button {
    width: 100%;
    max-width: 100%;
    margin: 30px auto 0 auto;
    padding: 18px; /* Bottone più grande */
    font-size: 1.3em;
    background-color: #e94560; /* Colore tema */
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #ff5a75;
}

.links-container { margin-top: 30px; }
.links-container a {
    display: block;
    background-color: transparent;
    padding: 5px 0px;
    color: #f7f7f7;
    text-decoration: underline;
    margin-top: 10px;
    font-size: 1.1em;
}
.links-container a:hover { color: #e94560; }

#messageArea { margin-top: 15px; padding: 10px; border-radius: 5px; display: none; font-weight: bold; }
.success { background-color: #4CAF50; color: white; }
.error { background-color: #f44336; color: white; }
.screenreader {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.password-requirements {
    font-size: 0.8em;
    color: #4a4a4a;
    margin-top: 5px;
    text-align: left;
}


/* --- RESPONSIVITA' MOBILE (Sotto i 480px) --- */
@media (max-width: 480px) {
    body {
        padding: 0;
        padding-bottom: 0 !important; /* Rimuove l'offset in alto su mobile */
    }
    .login-container, .register-container {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        padding: 20px;
        border-radius: 0;
    }
}
