:root {
    --bg: #f2f3f5;
    --surface: #ffffff;
    --field: #f6f6f7;
    --text: #1d1d1f;
    --text-2: #5f6368;
    --border: #e2e3e6;
    --accent: #1a5fb4;
    --on-accent: #ffffff;
    --err-bg: #fdecec;
    --err-fg: #a32d2d;
    --err-border: #f09595;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111214;
        --surface: #1c1d20;
        --field: #17181a;
        --text: #ececee;
        --text-2: #b0b3b8;
        --border: #2e3034;
        --accent: #7db3f0;
        --on-accent: #111214;
        --err-bg: #3a1717;
        --err-fg: #f7c1c1;
        --err-border: #a32d2d;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
}

main {
    width: 100%;
    max-width: 340px;
}

h1 {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 16px;
}

form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    margin: 0 0 6px;
}

input {
    font: inherit;
    font-size: 16px;
    color: var(--text);
    background: var(--field);
    border: 1px solid var(--border);
    border-radius: 10px;
    height: 44px;
    padding: 0 12px;
    margin-bottom: 14px;
}
input:focus {
    outline: 2px solid var(--accent);
    border-color: transparent;
}

button {
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    height: 46px;
    margin-top: 4px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: var(--on-accent);
    cursor: pointer;
}

.fehler {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    background: var(--err-bg);
    color: var(--err-fg);
    border: 1px solid var(--err-border);
}
