* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    color: #333;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    text-align: center;
    padding: 20px;
}
.logo { max-width: 180px; height: auto; margin-bottom: 20px; }
.emergenza { color: #c8102e; font-weight: bold; font-size: 15px; margin-bottom: 20px; }
.box {
    background: #fff;
    width: 100%;
    max-width: 380px;
    padding: 30px;
    border-top: 4px solid #c8102e;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    text-align: left;
}
h1 { font-size: 22px; margin: 0 0 20px; text-align: center; color: #c8102e; }
label { display: block; font-size: 13px; font-weight: bold; margin-bottom: 5px; }
input[type=text], input[type=password] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 15px;
}
input[type=text]:focus, input[type=password]:focus { outline: none; border-color: #c8102e; }
button {
    width: 100%;
    padding: 11px;
    background: #c8102e;
    color: #fff;
    border: 0;
    border-radius: 3px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}
button:hover { background: #a30d25; }
.errore { background: #fdecea; color: #a30d25; padding: 10px; margin-bottom: 15px; border-radius: 3px; font-size: 13px; }
.footer { margin-top: 25px; font-size: 12px; color: #777; }
.link { margin-top: 15px; text-align: center; font-size: 13px; }
.link a { color: #c8102e; text-decoration: none; }
.link a:hover { text-decoration: underline; }
.ok { background: #e8f5e9; color: #2e7d32; padding: 10px; margin-bottom: 15px; border-radius: 3px; font-size: 13px; }
.info { font-size: 13px; margin: 0 0 15px; }
.avviso { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 380px; background: #fff3cd; color: #664d03; border: 2px solid #f0ad00; border-left-width: 6px; padding: 14px 16px; margin-bottom: 20px; border-radius: 4px; font-size: 14px; font-weight: bold; text-align: left; }
.avviso svg { flex: 0 0 32px; width: 32px; height: 32px; }
.captcha { margin-bottom: 15px; min-height: 78px; }
