/* Shared look for the login pages and the admin pages - same palette as the workout builder. */
:root {
    --bg: #0e1512;
    --bg-card: #161f1a;
    --bg-card2: #1c2621;
    --accent: #c8ff4d;
    --accent-dim: #8fb83a;
    --text: #eef4ee;
    --text-dim: #93a396;
    --danger: #ff5d5d;
    --border: #2a352e;
    --rest: #4dc4ff;
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    padding: calc(40px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom));
    background: radial-gradient(circle at 20% 0%, #16241a 0%, var(--bg) 55%);
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

.brand {
    max-width: 420px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}
.dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    flex-shrink: 0;
}

.card {
    max-width: 420px;
    margin: 0 auto;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

h1 { margin: 0 0 8px; font-size: 1.5rem; }
.muted { color: var(--text-dim); }
.small { font-size: .82rem; }

label { display: block; margin: 18px 0 6px; font-size: .85rem; color: var(--text-dim); }

input, select {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }

.code-input { font-size: 1.6rem; letter-spacing: .4em; text-align: center; }

label.checkbox { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: .9rem; cursor: pointer; }
label.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
label.checkbox + .muted { margin: 4px 30px 0 0; }

button {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #10170f;
    background: var(--accent);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
}
button:hover { background: #d6ff70; }
button.secondary { color: var(--text); background: var(--bg-card2); border: 1px solid var(--border); }
button.secondary:hover { border-color: var(--accent-dim); }
button.danger { color: #fff; background: #c43c3c; }
button.danger:hover { background: var(--danger); }

.error { padding: 10px 12px; color: #ffb3b3; background: #3a1d1d; border-radius: 10px; }
.notice { padding: 10px 12px; color: var(--accent); background: #1f2b17; border-radius: 10px; }

.links { margin-top: 20px; text-align: center; }
a { color: var(--accent); }

.footer-links {
    max-width: 420px;
    margin: 16px auto 0;
    text-align: center;
    font-size: .8rem;
    color: var(--text-dim);
}
.footer-links a { color: var(--text-dim); }

.mail { margin-top: 16px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.mail header { display: flex; flex-direction: column; }
.mail pre { margin: 8px 0 0; white-space: pre-wrap; font-family: inherit; overflow-wrap: anywhere; }

.prose h2 { font-size: 1.05rem; margin: 22px 0 6px; }
.prose ul { padding-inline-start: 20px; }
.prose li { margin-bottom: 6px; }
