/* =========================================================
   AUTH — design tokens (mirror ERP + wizard palette)
========================================================= */

:root {
    --bg-base: #f4f6f8;
    --surface: #ffffff;
    --surface-alt: #f8fafc;

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-soft: #94a3b8;

    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-soft: #eff6ff;

    --line: #e2e8f0;
    --line-strong: #cbd5e1;

    --shadow-sm:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 2px 6px rgba(15, 23, 42, 0.04);

    --shadow:
        0 1px 3px rgba(15, 23, 42, 0.05),
        0 8px 24px rgba(15, 23, 42, 0.05);

    --radius: 10px;
    --radius-sm: 6px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 15px;
    line-height: 1.5;

    background: var(--bg-base);
    color: var(--text-main);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   LOGIN LAYOUT
========================================================= */

.auth-shell {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;

    padding: 24px;

    background: var(--bg-base);
}

.auth-card {
    width: 100%;
    max-width: 400px;

    padding: 32px;

    background: var(--surface);

    border: 1px solid var(--line);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.auth-brand {
    margin-bottom: 20px;

    text-align: center;
}

.auth-brand-kicker {
    margin: 0 0 3px;

    color: var(--text-soft);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-brand h1 {
    margin: 0;

    color: var(--text-main);

    font-size: 22px;
    font-weight: 750;

    letter-spacing: -0.03em;
}

.auth-subtitle {
    margin: 4px 0 0;

    color: var(--text-muted);

    font-size: 13px;
}


/* =========================================================
   FORM
========================================================= */

.auth-form {
    display: flex;
    flex-direction: column;

    gap: 14px;

    margin-top: 18px;
}

label {
    display: block;

    margin-bottom: 6px;

    color: var(--text-main);

    font-size: 13px;
    font-weight: 600;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;

    padding: 10px 12px;

    color: var(--text-main);
    background: var(--surface);

    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);

    font-size: 14px;

    outline: none;

    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
}

input:hover {
    border-color: var(--text-soft);
}

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

    box-shadow: 0 0 0 3px var(--accent-soft);
}

input.is-invalid {
    border-color: #dc2626;
}

.auth-checkbox {
    display: flex;
    align-items: center;

    gap: 8px;

    color: var(--text-muted);

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;

    margin: 0;
}

.form-error {
    margin-top: 6px;

    color: #b91c1c;

    font-size: 12px;
    font-weight: 500;
}


/* =========================================================
   BUTTON
========================================================= */

.auth-submit {
    width: 100%;

    margin-top: 6px;

    padding: 11px 16px;

    color: #ffffff;
    background: var(--accent);

    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: background-color 150ms ease;
}

.auth-submit:hover {
    background: var(--accent-hover);

    border-color: var(--accent-hover);
}

.auth-submit:disabled {
    opacity: 0.5;

    cursor: not-allowed;
}