:root {
    --bg: #08090c;
    --surface: #101216;
    --surface-2: #15171d;
    --border: rgba(255, 255, 255, 0.09);
    --border-input: rgba(255, 255, 255, 0.12);
    --text: #f4f5f7;
    --text-muted: #969ba5;
    --accent-red: #E6192B;
    --accent-red-hover: #FF2A3D;
}

* { box-sizing: border-box; }

body {
    align-items: center;
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    height: 100vh;
    justify-content: center;
    margin: 0;
    overflow: hidden;
    position: relative;
}

/* Motivo diagonale rosso discreto (richiamo del sito GEA) */
body::before {
    content: "";
    position: absolute;
    top: -90px;
    left: -90px;
    width: 220px;
    height: 220px;
    border-left: 3px solid rgba(230, 25, 43, 0.55);
    border-bottom: 3px solid rgba(230, 25, 43, 0.28);
    transform: rotate(45deg);
    pointer-events: none;
}

.login-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    max-width: 360px;
    padding: 2.5rem 2.25rem;
    position: relative;
    text-align: center;
    width: 100%;
}

/* Piastrina bianca col logo GEA (lo stesso asset usato come avatar bot) */
.login-logo {
    background: #ffffff;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 16px;
    padding: 12px 18px;
}

.login-logo img {
    display: block;
    height: 42px;
    width: auto;
}

h2 {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.6px;
    margin: 0 0 1.75rem;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-label {
    color: var(--text-muted);
    display: block;
    font-size: 0.85rem;
}

.label-text {
    display: block;
    margin-bottom: 6px;
}

input[type="text"],
input[type="password"] {
    background: var(--surface-2);
    border: 1px solid var(--border-input);
    border-radius: 9px;
    color: var(--text);
    display: block;
    font-size: 1rem;
    padding: 12px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(230, 25, 43, 0.18);
    outline: none;
}

button {
    background: var(--accent-red);
    border: none;
    border-radius: 9px;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 10px;
    padding: 12px;
    transition: background 0.2s, box-shadow 0.2s;
    width: 100%;
}

button:hover {
    background: var(--accent-red-hover);
    box-shadow: 0 0 14px rgba(230, 25, 43, 0.40);
}

.error-msg {
    background-color: rgba(230, 25, 43, 0.12);
    border: 1px solid rgba(230, 25, 43, 0.40);
    border-radius: 8px;
    color: #FF8A92;
    font-size: 0.85rem;
    margin-bottom: 16px;
    padding: 10px;
}
