/* ==========================================================
   Shared tokens — used by both the Control Panel and the login
   screen. The Live Display has its own stylesheet since its
   look is driven by the configurable theme, not this palette.
   ========================================================== */
:root {
    --bg-deep:      #0B0E1A;
    --panel:        #161B2C;
    --panel-alt:    #1E2439;
    --panel-raised: #232A46;
    --border:       #2A3050;
    --accent:       #D4A24C;
    --accent-dim:   #A67F3A;
    --accent-ink:   #241A05;
    --text-primary: #F5EFE3;
    --text-muted:   #9AA0B4;
    --text-faint:   #5B6280;
    --danger:       #E0554F;
    --success:      #4CAF7D;
    --radius-sm:    6px;
    --radius-md:    10px;
    --font-display: 'Poppins', 'Segoe UI', sans-serif;
    --font-body:    'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
}

a { color: inherit; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--panel-raised); border-radius: 5px; }

/* ---------------- Login screen ---------------- */
.login-shell {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 15%, rgba(212,162,76,0.08), transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(212,162,76,0.06), transparent 40%),
        var(--bg-deep);
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 32px 32px;
}

.login-mark {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    color: var(--accent-ink);
    margin-bottom: 20px;
}

.login-card h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    margin: 0 0 4px;
}

.login-card p.sub {
    color: var(--text-muted);
    margin: 0 0 28px;
    font-size: 13.5px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.field input, .field select, .field textarea {
    width: 100%;
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.15s ease;
}

.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: filter 0.12s ease, transform 0.06s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent-dim); }

.btn-danger { background: rgba(224,85,79,0.15); color: #F3A8A4; border: 1px solid rgba(224,85,79,0.4); }
.btn-danger:hover { background: rgba(224,85,79,0.25); }

.btn-block { width: 100%; }

.error-banner {
    background: rgba(224,85,79,0.12);
    border: 1px solid rgba(224,85,79,0.4);
    color: #F3A8A4;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.error-banner.show { display: block; }

.hint {
    margin-top: 22px;
    font-size: 12px;
    color: var(--text-faint);
    text-align: center;
}
