
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    padding: 40px 36px;
    width: 100%;
    max-width: 380px;
}
.logo { text-align: center; margin-bottom: 28px; }
.logo img { width: 48px; height: 48px; }
h1 { font-size: 1.25rem; font-weight: 600; color: #111; text-align: center; margin-bottom: 24px; }
label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #111;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.15s;
}
input[type="text"]:focus, input[type="password"]:focus { border-color: #2563eb; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.checkbox-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: #2563eb; cursor: pointer; }
.checkbox-row label { font-size: 0.875rem; color: #555; }
.checkbox-row label {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    display: inline;
    margin: 0;
    cursor: pointer;
}
button[type="submit"] {
    width: 100%;
    padding: 11px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
button[type="submit"]:hover { background: #1d4ed8; }
.error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 0.875rem;
    margin-bottom: 16px;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 24px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.fallback {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
    margin-top: 20px;
}
.fallback a { color: #2563eb; text-decoration: none; }
.fallback a:hover { text-decoration: underline; }
