* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 35%),
        radial-gradient(circle at top left, rgba(255,255,255,0.34), transparent 35%),
        radial-gradient(circle at bottom right, rgba(201,154,74,0.28), transparent 38%),
        linear-gradient(135deg, #1f3e2d 0%, #6f7b4b 48%, #dfe8df 100%);
    color: #2d2522;
}

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 28px 18px;
}

.login-card {
    width: 100%;
    max-width: 390px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    padding: 34px 32px 28px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(49, 18, 25, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.logo-box img {
    width: 168px;
    max-width: 80%;
    margin-bottom: 22px;
}

.title-box h1 {
    margin: 0;
    font-size: 27px;
    line-height: 1.15;
    color: #1f3e2d;
    letter-spacing: -0.3px;
}

.title-box p {
    margin: 12px 0 22px;
    font-size: 14.5px;
    line-height: 1.45;
    color: #665a55;
}

.reserved-box {
    margin: 0 0 22px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #edf5ee;
    color: #1f3e2d;
    font-size: 13.5px;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    padding: 13px 14px;
    margin-bottom: 13px;
    border-radius: 12px;
    border: 1px solid #d9c8bd;
    background: #fffdfb;
    color: #2d2522;
    font-size: 15px;
    outline: none;
}

.login-form input:focus {
    border-color: #9f5b42;
    box-shadow: 0 0 0 3px rgba(159, 91, 66, 0.14);
}

.login-form button {
    width: 100%;
    margin-top: 4px;
    padding: 13px 16px;
    border: none;
    border-radius: 13px;
    background: linear-gradient(135deg, #1f3e2d, #c99a4a);
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(31, 62, 45, 0.25);
}

.login-form button:hover {
    background: linear-gradient(135deg, #14291f, #9b6a21);
}

.errore {
    margin-top: 15px;
    min-height: 18px;
    color: #b00020;
    font-size: 13.5px;
}

.login-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

/* ================================
   Selettore lingua login
   ================================ */

.language-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 12px;
}

.language-box a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(31, 62, 45, 0.22);
    background: rgba(247, 251, 247, 0.88);
    color: #1f3e2d;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.language-box a.active {
    background: linear-gradient(135deg, #1f3e2d, #c99a4a);
    border-color: rgba(201, 154, 74, 0.55);
    color: #ffffff;
}
