/* Reset di base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Sfondo della pagina con gradiente blu/azzurro */
body {
    background: linear-gradient(135deg, #0A2540 0%, #2065D1 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

/* Contenitore della card */
.login-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

/* Animazione di entrata */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stile dell'icona decorativa */
.icon-container {
    background-color: #E3F2FD;
    color: #2065D1;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
}

/* Titoli e testi */
h1 {
    font-size: 24px;
    font-weight: 700;
    color: #0A2540;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    color: #637381;
    margin-bottom: 32px;
}

/* Gruppo del form */
.form-group {
    text-align: left;
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0A2540;
    margin-bottom: 8px;
}

/* Stile della Select */
select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: #333;
    background-color: #F4F6F8;
    border: 2px solid transparent;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232065D1%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 16px top 50%;
    background-size: 12px auto;
}

select:focus, select:hover {
    border-color: #2065D1;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(32, 101, 209, 0.1);
}

/* Stile degli input di testo/password (es. form di login) */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: #333;
    background-color: #F4F6F8;
    border: 2px solid transparent;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #2065D1;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(32, 101, 209, 0.1);
}

/* Bottone di invio */
.btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #2065D1;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-primary:hover:not(:disabled) {
    background-color: #104C97;
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(1px);
}

/* Stato disabilitato del bottone */
.btn-primary:disabled {
    background-color: #A0C3FF;
    cursor: not-allowed;
    opacity: 0.7;
}