:root {
    --primary: #0f172a; /* Blu notte moderno */
    --accent: #3b82f6;  /* Blu brillante per interazioni */
    --bg: #f1f5f9;
    --text: #334155;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg);
    font-family: 'Inter', sans-serif;
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.main-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: var(--white);
    padding: 45px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.brand-section { text-align: center; margin-bottom: 35px; }

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.logo span { color: var(--accent); }

.subtitle { color: #64748b; font-size: 0.9rem; margin-top: 5px; }

.input-field { margin-bottom: 20px; }

.input-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-field input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn-primary {
    width: 100%;
    background-color: var(--primary);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2);
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #fee2e2;
}

.footer-links { text-align: center; margin-top: 30px; }

.footer-links hr { border: 0; border-top: 1px solid #f1f5f9; margin: 20px 0; }

.forgot-pwd, .register {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.footer-links p { font-size: 0.85rem; color: #64748b; }