/*
 * Styles for the admin login / dashboards page (resources/views/auth/login.blade.php).
 * Served as a static asset (not Vite-bundled) so the page renders without a
 * build step — it gates Horizon/Telescope and must work on a bare deploy.
 * The web server caches it via ETag/Last-Modified, unlike the previous inline
 * <style> block which shipped with every page load.
 */
:root {
    color-scheme: light dark;
    --bg: #f3f4f6;
    --card-bg: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #d1d5db;
    --input-bg: #ffffff;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --error-bg: #fef2f2;
    --error-text: #b91c1c;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b0f19;
        --card-bg: #161b26;
        --text: #e5e7eb;
        --muted: #9ca3af;
        --border: #374151;
        --input-bg: #1f2633;
        --primary: #3b82f6;
        --primary-hover: #2563eb;
        --error-bg: #2a1416;
        --error-text: #fca5a5;
    }
}
* { box-sizing: border-box; }
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    display: flex; min-height: 100vh; align-items: center; justify-content: center;
    margin: 0; background: var(--bg); color: var(--text);
}
.card {
    width: 100%; max-width: 360px; padding: 2rem; background: var(--card-bg);
    border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
h1 { font-size: 1.25rem; margin: 0 0 1.5rem; }
label { display: block; font-size: .875rem; margin-bottom: .25rem; }
input[type=email], input[type=password] {
    width: 100%; padding: .5rem .75rem; margin-bottom: 1rem;
    border: 1px solid var(--border); border-radius: 8px; font-size: 1rem;
    background: var(--input-bg); color: var(--text);
}
input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.remember { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: .875rem; color: var(--muted); }
button {
    width: 100%; padding: .625rem; border: 0; border-radius: 8px;
    background: var(--primary); color: #fff; font-size: 1rem; cursor: pointer;
}
button:hover { background: var(--primary-hover); }
.errors { background: var(--error-bg); color: var(--error-text); border-radius: 8px; padding: .75rem; margin-bottom: 1rem; font-size: .875rem; }
.errors ul { margin: 0; padding-left: 1.25rem; }
.who { font-size: .875rem; color: var(--muted); margin-bottom: 1.25rem; }
.links { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.links a {
    flex: 1; text-align: center; padding: .55rem; border-radius: 8px;
    border: 1px solid var(--border); color: var(--primary); text-decoration: none; font-size: .9rem;
}
.links a:hover { border-color: var(--primary); }
.logout { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.logout:hover { background: var(--error-bg); color: var(--error-text); border-color: var(--error-text); }
