/* LeaseFlow Concierge - shared "futuristic blue" theme.
   Every page links this file first; page-specific layout lives in each
   template's own <style> block and uses the tokens below. */

:root {
    --bg: #050816;
    --bg-raised: #0a1128;
    --panel: rgba(13, 22, 48, 0.62);
    --panel-solid: #0b1530;
    --inset: rgba(3, 8, 24, 0.66);
    --border: rgba(110, 168, 255, 0.16);
    --border-strong: rgba(56, 189, 248, 0.5);

    --text: #e8f1ff;
    --text-soft: #b4c4e4;
    --muted: #7b8bb0;

    --accent: #38bdf8;
    --accent-2: #3b82f6;
    --accent-3: #6366f1;
    --grad: linear-gradient(135deg, #22d3ee 0%, #3b82f6 55%, #6366f1 100%);
    --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(99, 102, 241, 0.16));
    --glow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 10px 32px rgba(59, 130, 246, 0.35);
    --glow-soft: 0 0 24px rgba(56, 189, 248, 0.18);

    --ok: #34d399;
    --warn: #fbbf24;
    --danger: #fb7185;

    --radius: 20px;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.55;
    background:
        radial-gradient(1100px 620px at 8% -12%, rgba(59, 130, 246, 0.22), transparent 60%),
        radial-gradient(900px 520px at 100% 0%, rgba(34, 211, 238, 0.13), transparent 62%),
        radial-gradient(800px 600px at 50% 110%, rgba(99, 102, 241, 0.14), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

/* Faint blueprint grid that fades out toward the edges. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(110, 168, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 168, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 75%);
}

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

p { color: var(--text-soft); }

a { color: var(--accent); }

::selection { background: rgba(56, 189, 248, 0.35); color: white; }

/* Frosted-glass panel. */
.glass {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Buttons: primary is the glowing gradient, ghost is a glass outline. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border: 0;
    border-radius: 12px;
    background: var(--grad);
    color: white;
    font: 600 15px var(--font-body);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--glow);
    filter: brightness(1.08);
}
.btn.ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    color: var(--text);
    box-shadow: none;
}
.btn.ghost:hover { background: rgba(56, 189, 248, 0.1); box-shadow: var(--glow-soft); }
.btn.danger {
    background: rgba(251, 113, 133, 0.1);
    border: 1px solid rgba(251, 113, 133, 0.45);
    color: #fecdd3;
    box-shadow: none;
}
.btn.block { width: 100%; }

/* Form fields. */
.field, input[type="text"], input[type="email"], input[type="password"], input:not([type]) {
    width: 100%;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--inset);
    color: var(--text);
    font: 16px var(--font-body);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder { color: var(--muted); }
input:focus, .btn:focus-visible, a:focus-visible, button:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

/* Status chips. */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
}
.chip.now { color: #a7f3d0; background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.35); }
.chip.soon { color: #fde68a; background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.35); }

.error-box {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(251, 113, 133, 0.1);
    border: 1px solid rgba(251, 113, 133, 0.4);
    color: #fecdd3;
    font-size: 15px;
}

/* Thin, themed scrollbars. */
* { scrollbar-width: thin; scrollbar-color: rgba(56, 189, 248, 0.35) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.3); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
