/* Public area (login/reset/etc.) */
:root {
    --bg0: #0b1220;
    --bg1: #0f172a;
    --card: rgba(2, 6, 23, 0.92);
    --card-border: rgba(148, 163, 184, 0.18);
    --text: #e5e7eb;
    --muted: #a7b4c8;
    --muted2: #cbd5f5;
    --brand: #38bdf8;
    --brand2: #0ea5e9;
    --danger: #fb7185;
    --danger-bg: rgba(244, 63, 94, 0.12);
    --danger-border: rgba(244, 63, 94, 0.25);
    --input-bg: rgba(2, 6, 23, 0.65);
    --input-border: rgba(148, 163, 184, 0.22);
    --shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background:
        radial-gradient(900px 400px at 15% 15%, rgba(56, 189, 248, 0.18), transparent 55%),
        radial-gradient(700px 350px at 85% 10%, rgba(99, 102, 241, 0.14), transparent 52%),
        linear-gradient(180deg, var(--bg0), var(--bg1));
}

.card {
    width: 100%;
    max-width: 440px;
    padding: 26px 26px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

h1 {
    margin: 0 0 10px;
    font-size: 1.55rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 18px;
    color: var(--muted2);
    line-height: 1.45;
    font-size: 0.95rem;
}

.field {
    margin-bottom: 14px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 650;
    color: var(--muted);
    font-size: 0.85rem;
}

input[type="email"],
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text);
    outline: none;
    transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

input::placeholder { color: rgba(203, 213, 245, 0.55); }

input:focus {
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
    background: rgba(2, 6, 23, 0.78);
}

.error {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--danger-border);
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 0.9rem;
    line-height: 1.35;
}

button {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 0;
    background: linear-gradient(180deg, var(--brand), var(--brand2));
    color: #021018;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 80ms ease, filter 120ms ease;
}

button:hover { filter: brightness(1.03); }
button:active { transform: translateY(1px); }

.footer {
    margin-top: 14px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.92);
}

.footer a {
    color: rgba(148, 163, 184, 0.92);
    text-decoration: none;
}

.footer a:hover { text-decoration: underline; }
