/* Anmeldeseite des FBE Intranets – Aufbau und Gestaltung wie die Anmeldung von fb-eng.de */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700; src: url('../fonts/space-grotesk-latin.woff2') format('woff2'); }

:root {
    --navy: #0e2a39; --navy-2: #143648; --accent: #92c57a; --accent-ink: #3f8a32;
    --fg: #0e2a39; --fg-2: #4a5b64; --fg-3: #8796a0; --line: rgba(14, 42, 57, .16); --bg-2: #f2f4f3;
    --display: 'Space Grotesk', 'Inter', system-ui, sans-serif; --font: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body.auth { margin: 0; display: grid; grid-template-columns: 1fr; min-height: 100vh; font: 16px/1.6 var(--font); color: var(--fg); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* Linke Seite: Marke */
.auth__brand { position: relative; display: flex; flex-direction: column; gap: 2rem; padding: clamp(24px, 4vw, 56px); background: var(--navy); color: #fff; overflow: hidden; }
/* großes FBE-Zeichen als ruhiger Hintergrund */
.auth__brand::before {
    content: ''; position: absolute; right: -12%; bottom: -18%; width: 78%; aspect-ratio: 1; background: var(--navy-2);
    -webkit-mask: url('../images/fbe-zeichen.svg') center / contain no-repeat; mask: url('../images/fbe-zeichen.svg') center / contain no-repeat;
}
.auth__logo, .auth__claim, .auth__foot { position: relative; }
.auth__logo img { width: 170px; }
.auth__claim { margin-top: auto; max-width: 30rem; }
.auth__label { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-weight: 600; font-size: .9rem; color: var(--accent); }
.auth__label::before { content: ''; width: 12px; height: 12px; background: var(--accent); -webkit-mask: url('../images/fbe-zeichen.svg') center / contain no-repeat; mask: url('../images/fbe-zeichen.svg') center / contain no-repeat; }
.auth__headline { margin: 0 0 1.75rem; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.02; text-transform: uppercase; letter-spacing: -.02em; }
.auth__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; color: rgba(255, 255, 255, .8); font-size: .95rem; }
.auth__list li { position: relative; padding-left: 1.4rem; }
.auth__list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--accent); }
.auth__foot { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, .55); }

/* Rechte Seite: Formular */
.auth__main { display: grid; place-items: center; padding: clamp(32px, 6vw, 80px) clamp(20px, 5vw, 64px); }
.auth__box { width: min(100%, 420px); }
.auth__title { margin: 0 0 2rem; font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
.auth__title::after { content: ''; display: block; width: 64px; height: 4px; margin-top: 1rem; background: var(--accent); }
.auth__message, form .message:not(:empty) { display: block; margin: 0 0 1.5rem; padding: .9rem 1rem; background: var(--bg-2); font-size: .92rem; }
.auth__message--bad, .auth__message--error, .auth__message--warning, form .message.bad, form .message.error { background: #fff4ed; color: #9a3412; }
.auth__message:empty { display: none; }
.auth__content { margin-bottom: 1.5rem; padding: .9rem 1rem; background: var(--bg-2); border-left: 4px solid var(--accent); font-size: .92rem; }

/* Anmeldung mit dem Firmenkonto: der Hauptweg */
.auth__ms {
    display: flex; align-items: center; justify-content: center; gap: .8rem; width: 100%; height: 56px; background: var(--accent); color: var(--navy);
    text-decoration: none; font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; transition: background .2s, color .2s;
}
.auth__ms:hover { background: var(--navy); color: #fff; }
.auth__ms svg { flex: none; padding: 3px; background: #fff; }
.auth__hint { margin: .9rem 0 0; font-size: .88rem; color: var(--fg-2); }
.auth__alt { margin-top: 2.25rem; border-top: 1px solid var(--line); }
.auth__alt > summary { padding: 1rem 0; cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--fg-2); list-style: none; }
.auth__alt > summary::-webkit-details-marker { display: none; }
.auth__alt > summary::after { content: ' ▾'; }
.auth__alt[open] > summary::after { content: ' ▴'; }
.auth__alt > summary:hover { color: var(--accent-ink); }

form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { margin-bottom: 1.25rem; }
.field > label.left, .field > .form-label.left { display: block; margin-bottom: .45rem; font-size: .8rem; font-weight: 600; letter-spacing: .03em; color: var(--fg); }
.middleColumn { margin: 0; }
input[type=text], input[type=email], input[type=password] {
    width: 100%; height: 52px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 0; background: var(--bg-2);
    font: inherit; color: var(--fg); transition: border-color .2s, background .2s, box-shadow .2s;
}
input[type=text]:focus, input[type=email]:focus, input[type=password]:focus { outline: none; border-color: var(--accent-ink); background: #fff; box-shadow: 0 0 0 3px rgba(146, 197, 122, .35); }
.field.checkbox { display: flex; align-items: flex-start; gap: .7rem; margin-top: .5rem; }
.field.checkbox input { width: 18px; height: 18px; margin: .15rem 0 0; accent-color: var(--accent-ink); flex: none; }
.field.checkbox label { font-size: .9rem; color: var(--fg-2); }
.login-form__help-icon { display: none; }
.clear { clear: both; }
.btn-toolbar { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.75rem; }
input[type=submit], button[type=submit], .action {
    width: 100%; height: 56px; border: 0; border-radius: 0; background: var(--accent); color: var(--navy); cursor: pointer;
    font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; transition: background .2s, color .2s;
}
.auth__alt input[type=submit] { background: transparent; border: 1px solid var(--navy); }
input[type=submit]:hover, button[type=submit]:hover, .action:hover, .auth__alt input[type=submit]:hover { background: var(--navy); color: #fff; }
#ForgotPassword { margin: 0; text-align: center; font-size: .88rem; }
#ForgotPassword a { color: var(--fg-2); }
#ForgotPassword a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

@media (min-width: 900px) {
    body.auth { grid-template-columns: 5fr 4fr; }
    .auth__brand { min-height: 100vh; }
}
@media (max-width: 899px) {
    .auth__brand { gap: 1.25rem; }
    .auth__list, .auth__foot { display: none; }
    .auth__headline { font-size: 1.6rem; margin: 0; }
}
