/* login.css — standalone styles for the login page only.
 *
 * Deliberately independent of dashboard.css: the login page loads just this
 * file, so it re-declares the few tokens and base rules it needs. Keeps the
 * pre-auth page small and decoupled from the app shell.
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --font-sans: 'Inter', system-ui, sans-serif;

    --c-bg:          #0f1117;
    --c-surface:     #171b26;
    --c-surface-2:   #1e2333;
    --c-border:      #2a2f42;
    --c-text:        #e2e6f0;
    --c-text-muted:  #7a8099;
    --c-text-faint:  #4a5068;
    --c-accent:      #4f8ef7;
    --c-offline:     #f75c5c;
    --c-offline-bg:  rgba(247, 92, 92, 0.1);

    --radius-sm: 4px;
    --radius-md: 7px;
    --radius-lg: 10px;
}

html, body {
    height: 100%;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Center the card both axes on the screen. */
.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 360px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--c-accent);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 1.5rem;
}

.login-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 1.25rem;
}

.login-error {
    background: var(--c-offline-bg);
    color: var(--c-offline);
    border: 1px solid var(--c-offline);
    border-radius: var(--radius-sm);
    padding: 8px 11px;
    font-size: 13px;
    margin-bottom: 1rem;
}

.login-form { display: flex; flex-direction: column; gap: 1rem; }

/* Fields */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 12.5px; color: var(--c-text-muted); }
.form-field input {
    width: 100%;
    padding: 8px 11px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    background: var(--c-surface-2);
    color: var(--c-text);
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
}
.form-field input:focus { border-color: var(--c-accent); }
.form-field input::placeholder { color: var(--c-text-faint); }

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    background: var(--c-surface-2);
    color: var(--c-text);
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #3f7fe8; border-color: #3f7fe8; }

.login-submit { width: 100%; margin-top: 0.25rem; }
