body {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

main {
    width: min(100%, 430px);
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(30, 48, 66, .04);
}

.brand {
    width: 150px;
    margin: 0 0 24px;
}

.eyebrow {
    letter-spacing: 0;
}

h1 {
    font-size: 26px;
    letter-spacing: 0;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

form {
    gap: 14px;
}

label {
    color: var(--ink);
}

input,
button {
    border-radius: 4px;
}

input {
    min-width: 0;
    background: var(--white);
    color: var(--ink);
}

input:focus-visible,
button:focus-visible,
.auth-button:focus-visible,
.switch a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

button {
    min-height: 44px;
}

button:hover,
.auth-button:hover {
    background: #287eaf;
}

.error,
.success {
    border-radius: 4px;
    line-height: 1.6;
}

.switch {
    line-height: 1.6;
}

.auth-button {
    border-radius: 4px;
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    main {
        padding: 24px;
    }

    .brand {
        width: 140px;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #111a23;
        --white: #1b2732;
        --ink: #e7eef4;
        --muted: #a4b0ba;
        --line: #35434f;
        --blue: #62b5e3;
        --blue-light: #203847;
        --danger: #f07878;
        --success: #5bc49a;
    }

    img.brand[src*="logo-banner.png"] { content: url("https://fmplayer.de/assets/img/logo-banner-dark.png"); }
    main { background: var(--white); }
    input { background: #15212b; color: var(--ink); }
    .cancel-2fa-form .button-secondary { background: var(--white); }
    .error { background: #40272a; color: #f28b88; }
    .success { background: #1f3a32; color: #75d7ac; }
    .otp-digit, .otp-digit:hover:not(:focus) { border-color: var(--line) !important; background: #15212b !important; color: var(--ink) !important; }
}
