/* ============================================================
   Working Plan Management System — Design Tokens
   A calm, high-trust operations console: deep slate + signal amber
   for status/priority, nothing decorative beyond that one accent.
   ============================================================ */

:root {
    --wp-bg: #0f1720;
    --wp-panel: #ffffff;
    --wp-ink: #12181f;
    --wp-ink-muted: #5b6674;
    --wp-border: #e2e6ea;
    --wp-primary: #1f3a5f;
    --wp-primary-dark: #14283f;
    --wp-accent: #e0952b;      /* amber — used only for the signature progress motif & alerts */
    --wp-success: #2f8f5b;
    --wp-danger: #c1483d;
    --wp-radius: 10px;
    --wp-font-display: 'Iowan Old Style', 'Georgia', serif;
    --wp-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--wp-font-body);
    color: var(--wp-ink);
    background: #f3f5f7;
}

.wp-auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: var(--wp-bg);
}

.wp-auth-brand {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 4rem;
    color: #eef1f4;
    background:
        radial-gradient(circle at 15% 20%, rgba(224,149,43,0.10), transparent 40%),
        linear-gradient(160deg, #0f1720 0%, #16222f 100%);
    position: relative;
    overflow: hidden;
}

.wp-auth-brand h1 {
    font-family: var(--wp-font-display);
    font-size: 2.6rem;
    font-weight: 500;
    line-height: 1.15;
    max-width: 480px;
}

.wp-auth-brand p.lead {
    color: #a9b4c0;
    max-width: 420px;
    margin-top: 1rem;
}

/* Signature element: a stack of ticking progress bars, evoking the
   task-progress core of the product itself, not a generic hero graphic. */
.wp-progress-stack {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 360px;
}
.wp-progress-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: #8b96a3;
}
.wp-progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
}
.wp-progress-fill {
    height: 100%;
    background: var(--wp-accent);
    border-radius: 4px;
    animation: wp-fill 2.4s ease-out forwards;
}
@keyframes wp-fill {
    from { width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .wp-progress-fill { animation: none; }
}

.wp-auth-panel {
    flex: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wp-panel);
    padding: 3rem 2rem;
}

.wp-auth-card { width: 100%; max-width: 380px; }

.wp-auth-card h2 {
    font-family: var(--wp-font-display);
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}
.wp-auth-card .sub { color: var(--wp-ink-muted); font-size: 0.9rem; margin-bottom: 2rem; }

.form-label { font-size: 0.85rem; font-weight: 600; color: var(--wp-ink); }
.form-control {
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius);
    padding: 0.65rem 0.85rem;
}
.form-control:focus {
    border-color: var(--wp-primary);
    box-shadow: 0 0 0 3px rgba(31,58,95,0.15);
}

.btn-wp-primary {
    background: var(--wp-primary);
    border-color: var(--wp-primary);
    color: #fff;
    border-radius: var(--wp-radius);
    padding: 0.7rem 1rem;
    font-weight: 600;
}
.btn-wp-primary:hover { background: var(--wp-primary-dark); border-color: var(--wp-primary-dark); color: #fff; }

@media (max-width: 900px) {
    .wp-auth-brand { display: none; }
    .wp-auth-panel { flex: 1; }
}

/* ---- App shell (post-login pages) ---- */
.wp-nav-link { color: var(--wp-ink); padding: 0.4rem 0.5rem; border-radius: 6px; font-size: 0.92rem; }
.wp-nav-link:hover { background: #f0f2f4; }

.wp-progress-mini { height: 6px; border-radius: 4px; background: #eceff2; overflow: hidden; }
.wp-progress-mini > div { height: 100%; background: var(--wp-primary); }

.wp-task-row { border-left: 3px solid var(--wp-border); padding-left: 0.75rem; }
.wp-task-row.overdue { border-left-color: var(--wp-danger); }
.wp-task-row.due_today { border-left-color: var(--wp-accent); }

.wp-card-link { text-decoration: none; color: inherit; }
.wp-card-link:hover .card { box-shadow: 0 4px 14px rgba(15,23,32,0.08); }

