/* Importa il font Roboto da Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #121212; /* Sfondo scuro come nella pagina dei voti */
    color: white;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 450px; /* Un po' più grande per il form di login */
    background-color: #212121; /* Sfondo leggermente più chiaro del body */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

h1, h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    color: #fff; /* Titoli bianchi */
}

p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Stile per gli input di testo (come la password) */
.text-input {
    width: calc(100% - 20px);
    padding: 15px 10px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: none;
    background-color: #333;
    color: white;
    font-size: 1.1em;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease-in-out;
}

.text-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Stile per i pulsanti (login, invio, ecc.) */
.action-btn {
    background-color: #3498db;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.action-btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.waiting-page-container {
    /* Nuovo selettore per gestire il layout specifico della pagina di attesa */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente */
    align-items: center; /* Centra orizzontalmente */
    width: 100%;
    max-width: 450px;
    background-color: #212121;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.spinner {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
    margin-top: 30px;
}

.error-message {
    color: #e74c3c; /* Rosso per indicare un errore */
    font-size: 0.9em;
    margin-top: -10px; /* Sposta il messaggio più in alto, più vicino all'input */
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}