/* IAgorà - Stile area autenticazione (tema scuro, mobile first). */
:root {
    --bg: #0f1115;
    --surface: #171a21;
    --surface-2: #1f232c;
    --border: #2a2f3a;
    --text: #e6e8eb;
    --text-muted: #9aa1ad;
    --accent: #4f7cff;
    --accent-hover: #3f6ae6;
    --danger: #ff5c66;
    --success: #34d399;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
}

.auth-brand {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
    letter-spacing: -0.02em;
}

.auth-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 22px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.15s ease;
}

.field input:focus {
    border-color: var(--accent);
}

.btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn:hover {
    background: var(--accent-hover);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-links {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-links a {
    color: var(--accent);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.alert {
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.alert.is-visible {
    display: block;
}

.alert.error {
    background: rgba(255, 92, 102, 0.12);
    border: 1px solid rgba(255, 92, 102, 0.4);
    color: #ffb3b8;
}

.alert.success {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #8ff0c8;
}

@media (min-width: 480px) {
    .auth-card {
        padding: 36px 32px;
    }
}
