:root {
    --bg: #0f172a;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-muted: #4b5563;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --border: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #020617;
        --card-bg: #020617;
        --text-main: #e5e7eb;
        --text-muted: #9ca3af;
        --border: #1f2937;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    width: 100%;
    max-width: 380px;
    padding: 16px;
}

.auth-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow:
        0 10px 15px -3px rgba(15, 23, 42, 0.4),
        0 4px 6px -4px rgba(15, 23, 42, 0.5);
    padding: 24px 24px 20px;
}

.auth-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
}

.auth-sub {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

.field input[type="email"],
.field input[type="password"] {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 14px;
    outline: none;
}

.field input[type="email"]:focus,
.field input[type="password"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

/* Same look as the site forms' #error-msg (bg-red-600, white text) */
.error {
    margin-bottom: 16px;
    padding: 8px 16px;
    border: 1px solid #dc2626;
    border-radius: 6px;
    background-color: #dc2626;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
}

.hidden {
    display: none;
}

.btn {
    width: 100%;
    padding: 9px 10px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    background-color: var(--primary);
    color: #ffffff;
    cursor: pointer;
    font-weight: 500;
}

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

.btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.small-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* Same button as a link (404.php: back to the console) */
a.btn {
    display: block;
    text-align: center;
    text-decoration: none;
}
