/* Login lenne98 */

:root {
    --bg: #f4f5f7;
    --card: #ffffff;
    --text: #1d2330;
    --muted: #667085;
    --line: #dde1e7;
    --accent: #2f6fde;
    --accent-text: #ffffff;
    --accent-soft: #e8f0fd;
    --ok: #1e7b4a;
    --ok-soft: #e6f5ec;
    --error: #b42318;
    --error-soft: #fdecea;
    --radius: 10px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #11151c;
        --card: #1a1f29;
        --text: #e6e9ef;
        --muted: #98a2b3;
        --line: #2c3340;
        --accent: #5b8ef0;
        --accent-text: #0d1117;
        --accent-soft: #1d2a44;
        --ok: #5fcf8f;
        --ok-soft: #173125;
        --error: #f28b82;
        --error-soft: #3a1d1b;
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }

.top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    justify-content: space-between;
    max-width: 440px;
    margin: 0 auto;
    padding: 24px 16px 12px;
}
body.wide .top { max-width: 1100px; }

.brand {
    color: var(--text);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
}
.brand span { color: var(--muted); font-weight: 400; }

.top nav { display: flex; gap: 16px; font-size: 15px; }
.top nav a { text-decoration: none; }

.card {
    max-width: 440px;
    margin: 0 auto 48px;
    padding: 28px 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
body.wide .card { max-width: 1100px; }

@media (max-width: 480px) {
    .card { border-left: 0; border-right: 0; border-radius: 0; padding: 24px 16px; }
}

h1 { font-size: 24px; margin: 0 0 16px; line-height: 1.25; }
h1 small { display: block; font-size: 15px; font-weight: 400; color: var(--muted); margin-top: 4px; }
h2 { font-size: 18px; margin: 32px 0 12px; }
section + section { border-top: 1px solid var(--line); margin-top: 28px; }
section h2 { margin-top: 24px; }

p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }

.stack { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.stack.narrow { max-width: 440px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }

label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
.hint { font-weight: 400; font-size: 13px; color: var(--muted); }

input, select {
    font: inherit;
    width: 100%;
    padding: 10px 12px;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
input:disabled { color: var(--muted); }
input.code { font-size: 24px; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; }

button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font: inherit;
    font-weight: 600;
    padding: 10px 16px;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
}
button:hover, .button:hover { border-color: var(--accent); }
button.primary, .button.primary { color: var(--accent-text); background: var(--accent); border-color: var(--accent); }
button.primary:hover, .button.primary:hover { filter: brightness(1.08); }
button.small, .button.small { padding: 4px 10px; font-size: 13px; font-weight: 500; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.alert { padding: 10px 14px; border-radius: 8px; font-size: 15px; }
.alert.ok { color: var(--ok); background: var(--ok-soft); }
.alert.error { color: var(--error); background: var(--error-soft); }

.badge {
    display: inline-block;
    padding: 1px 8px;
    margin-left: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 99px;
    vertical-align: 1px;
}

code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; }
pre { overflow-x: auto; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }

/* Authenticator-Einrichtung */
.steps { padding-left: 20px; margin: 0 0 20px; }
.steps li { margin-bottom: 4px; }
.qr { width: 220px; max-width: 100%; margin: 0 auto 12px; }
.qr svg { display: block; width: 100%; height: auto; border-radius: 8px; }
.secret { font-size: 16px; letter-spacing: 1px; word-break: break-all; }

.codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0;
    margin: 0 0 16px;
    list-style: none;
}
.codes code { display: block; padding: 8px; text-align: center; background: var(--bg); border-radius: 6px; font-size: 15px; }

.devices { list-style: none; padding: 0; margin: 0 0 16px; }
.devices li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}
.devices .muted { font-size: 13px; }

.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks .ok { color: var(--ok); }
.checks .fail { color: var(--error); font-weight: 600; }

.link-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    margin: 0 0 20px;
    background: var(--accent-soft);
    border-radius: 8px;
}
.link-box input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }

/* Honeypot für Bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Verwaltung */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.tabs a {
    padding: 8px 14px;
    margin-bottom: -1px;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.tabs a.active { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }

.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
tr.dim td { opacity: .55; }
tr.warn td { background: var(--error-soft); }
.cell-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.cell-actions form { margin: 0; }
td:first-child { white-space: nowrap; }

.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.inline-form label { flex: 1 1 180px; }
.inline-form label.check { flex: 0 0 auto; padding-bottom: 10px; }
