/* === APP.CSS ===
   app/assets/css/app.css
   НАЗНАЧЕНИЕ: Все стили FocusFlow v2 (dark по умолчанию, компактно 10px, мобильная версия)
   СВЯЗИ: views/*.php, assets/js/*.js
   Эстетика: "пульт фокуса" - темный графит, янтарный луч-акцент, квадранты как сигнальные огни */

/* ---------- 1. Токены ---------- */
:root {
    --bg: #0f1113;
    --bg-2: #15181b;
    --panel: #1a1e22;
    --panel-2: #20252a;
    --line: #2a3036;
    --line-2: #353c43;
    --text: #e6e8ea;
    --text-2: #a3abb3;
    --text-3: #6f7880;
    --accent: #ffb020;          /* янтарный луч фокуса */
    --accent-ink: #1a1400;
    --accent-soft: rgba(255, 176, 32, .12);
    --ok: #3ecf8e;
    --danger: #ff5d5d;
    --q1: #ff5d5d;              /* K1 важно+срочно */
    --q2: #ffb020;              /* K2 важно */
    --q3: #4da3ff;              /* K3 срочно */
    --q4: #6f7880;              /* K4 остальное */
    --radius: 6px;
    --gap: 10px;
    --font: 'Onest', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    color-scheme: dark;         /* темные системные полосы прокрутки и списки */
}
[data-theme="light"] {
    color-scheme: light;
    --bg: #f3f4f5;
    --bg-2: #eceef0;
    --panel: #ffffff;
    --panel-2: #f6f7f8;
    --line: #dde1e5;
    --line-2: #c9cfd5;
    --text: #15181b;
    --text-2: #4d565e;
    --text-3: #87909a;
    --accent: #d98a00;
    --accent-ink: #ffffff;
    --accent-soft: rgba(217, 138, 0, .12);
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font: 14px/1.4 var(--font);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-3); }
[hidden] { display: none !important; }

/* ---------- 3. Кнопки и поля ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    flex: 0 0 auto; white-space: nowrap;
    height: 32px; padding: 0 12px;
    border: 1px solid var(--line-2); border-radius: var(--radius);
    background: var(--panel-2); color: var(--text);
    cursor: pointer; font-weight: 500;
}
.btn:hover { border-color: var(--text-3); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { filter: brightness(1.08); border-color: var(--accent); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-2); }
.btn-danger { color: var(--danger); }
.btn-sm { height: 26px; padding: 0 8px; font-size: 12px; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

.input, .field input, .field select, .field textarea, select.input {
    width: 100%; height: 32px; padding: 0 10px;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
    outline: none;
}
textarea.input, .field textarea { height: auto; min-height: 64px; padding: 8px 10px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span { font-size: 12px; color: var(--text-2); }
.check { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; cursor: pointer; }
.check input { accent-color: var(--accent); }

/* ---------- 4. Страница входа ---------- */
.auth-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 16px;
    background:
        radial-gradient(600px 300px at 50% 0%, var(--accent-soft), transparent 70%),
        var(--bg);
}
.auth-card {
    width: 100%; max-width: 340px;
    display: flex; flex-direction: column; gap: var(--gap);
    padding: 20px; background: var(--panel);
    border: 1px solid var(--line); border-radius: 10px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.auth-sub { margin: -4px 0 4px; color: var(--text-3); font-size: 13px; }
.auth-error {
    padding: 8px 10px; border-radius: var(--radius);
    background: rgba(255, 93, 93, .1); border: 1px solid rgba(255, 93, 93, .35); color: var(--danger);
    font-size: 13px;
}
.auth-form { display: flex; flex-direction: column; gap: var(--gap); }
.auth-link { font-size: 13px; text-align: center; }
.auth-sub b { color: var(--text); }
