/* ──
    Auth page styles
── */
:root {
    --bg-base:      #f6f7fb;
    --bg-surface:   #ffffff;
    --bg-raised:    #f9fafb;
    --border:       #e5e7eb;
    --border-hi:    #d1d5db;
    --text-primary: #111827;
    --text-muted:   #64748b;
    --amber:        #c47a12;
    --red:          #dc2626;
    --red-dim:      #feecec;
    --radius:       8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'DM Sans', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(196, 122, 18, 0.12), transparent 32rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg-base) 55%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.login-wrap {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.login-brand {
    text-align: center;
    margin-bottom: 34px;
}

.login-brand .name {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 27px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text-primary);
}

.login-brand .label {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--amber);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 4px;
}

.login-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 11px;
    font-family: 'DM Mono', monospace;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: var(--bg-raised);
    border: 1px solid var(--border-hi);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(196, 122, 18, 0.12);
}

.form-control::placeholder { color: #a8b0bd; }

.form-error {
    font-size: 12px;
    color: var(--red);
    margin-top: 5px;
    padding: 8px 10px;
    background: var(--red-dim);
    border-radius: 6px;
    border: 1px solid #fecaca;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.remember-row input[type=checkbox] {
    accent-color: var(--amber);
    width: 14px;
    height: 14px;
}

.remember-row label {
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-login {
    width: 100%;
    background: var(--amber);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 12px;
    cursor: pointer;
    transition: background 0.15s;
    box-shadow: 0 8px 18px rgba(196, 122, 18, 0.18);
}

.btn-login:hover { background: #a9630b; }

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 480px) {
    body { padding: 16px; }
    .login-card { padding: 24px; }
    .login-brand { margin-bottom: 28px; }
}