/* Anmeldung und Auth-Nebenseiten (layouts/guest, components/jet-authentication-card und jet-*).
   Farben wie die Oberfläche (public/css/navigation.css): Slate-Töne, Akzent Indigo. */
:root {
    --bm-auth-text: #0F172A;
    --bm-auth-text-2: #334155;
    --bm-auth-muted: #64748B;
    --bm-auth-border: #E2E8F0;
    --bm-auth-bg: #F8FAFC;
    --bm-auth-accent: #3730A3;
    --bm-auth-accent-hover: #312E81;
    --bm-auth-accent-soft: #EEF2FF;
    --bm-auth-danger: #B91C1C;
    --bm-auth-danger-bg: #FEF2F2;
    --bm-auth-success: #15803D;
    --bm-auth-success-bg: #F0FDF4;
}

body { background: var(--bm-auth-bg); color: var(--bm-auth-text); font-family: Nunito, ui-sans-serif, system-ui, sans-serif; }

.bm-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }

/* Linke Seite: Marke */
.bm-auth__brand {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    padding: 48px 56px; color: #E0E7FF;
    background: radial-gradient(120% 90% at 0% 0%, #4338CA 0%, #312E81 45%, #1E1B4B 100%);
}
.bm-auth__brand::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
    background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(80% 70% at 100% 100%, #000 0%, transparent 70%);
}
.bm-auth__brand > * { position: relative; z-index: 1; }
.bm-auth__mark { display: flex; align-items: center; gap: 12px; }
.bm-auth__mark-logo { width: 44px; height: 44px; border-radius: 12px; background: #FFFFFF; display: grid; place-items: center; padding: 6px; box-shadow: 0 8px 24px rgba(15, 23, 42, .25); }
.bm-auth__mark-logo svg { width: 32px; height: 32px; }
.bm-auth__mark-logo svg path, .bm-auth__card-logo svg path { stroke: var(--bm-auth-accent); stroke-width: 1.4px; vector-effect: non-scaling-stroke; }
.bm-auth__mark-name { font-size: 20px; font-weight: 700; color: #FFFFFF; letter-spacing: .01em; }
.bm-auth__claim { max-width: 440px; }
.bm-auth__claim h1 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 700; color: #FFFFFF; }
.bm-auth__claim p { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: #C7D2FE; }
.bm-auth__features { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.bm-auth__features li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: #E0E7FF; }
.bm-auth__features svg { flex-shrink: 0; width: 22px; height: 22px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.14); color: #FFFFFF; }
.bm-auth__foot { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #A5B4FC; }

/* Rechte Seite: Formular */
.bm-auth__main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.bm-auth__card { width: 100%; max-width: 400px; }
.bm-auth__card-logo { display: none; }
.bm-auth__title { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 700; color: var(--bm-auth-text); }
.bm-auth__desc { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--bm-auth-muted); }
.bm-auth__body { margin-top: 28px; }
.bm-auth__body form { display: grid; gap: 18px; }
.bm-auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bm-auth__help { font-size: 14px; color: var(--bm-auth-muted); line-height: 1.55; }

.bm-auth-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--bm-auth-text-2); }
.bm-auth-input {
    display: block; width: 100%; height: 44px; padding: 0 14px; border-radius: 10px;
    border: 1px solid #CBD5E1; background: #FFFFFF; color: var(--bm-auth-text); font: inherit; font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.bm-auth-input::placeholder { color: #94A3B8; }
.bm-auth-input:hover { border-color: #94A3B8; }
.bm-auth-input:focus { outline: none; border-color: var(--bm-auth-accent); box-shadow: 0 0 0 3px rgba(55, 48, 163, .18); }
.bm-auth-input[aria-invalid="true"] { border-color: var(--bm-auth-danger); }
.bm-auth-field { position: relative; }
.bm-auth-field .bm-auth-input { padding-right: 46px; }
.bm-auth-reveal {
    position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 8px;
    background: transparent; color: var(--bm-auth-muted); cursor: pointer; display: grid; place-items: center;
}
.bm-auth-reveal:hover { background: #F1F5F9; color: var(--bm-auth-text); }
.bm-auth-reveal:focus-visible { outline: 2px solid var(--bm-auth-accent); outline-offset: 1px; }

.bm-auth-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--bm-auth-text-2); cursor: pointer; }
.bm-auth-check input { width: 18px; height: 18px; accent-color: var(--bm-auth-accent); cursor: pointer; }

.bm-auth-link { font-size: 14px; font-weight: 600; color: var(--bm-auth-accent); text-decoration: none; border-radius: 4px; }
.bm-auth-link:hover { text-decoration: underline; color: var(--bm-auth-accent-hover); }
.bm-auth-link:focus-visible { outline: 2px solid var(--bm-auth-accent); outline-offset: 2px; }

.bm-auth-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
    border: 0; border-radius: 10px; background: var(--bm-auth-accent); color: #FFFFFF; font: inherit; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: background-color .15s ease, box-shadow .15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
}
.bm-auth-button:hover { background: var(--bm-auth-accent-hover); }
.bm-auth-button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(55, 48, 163, .3); }
.bm-auth-button:disabled { opacity: .6; cursor: default; }
.bm-auth-button--block { width: 100%; }
.bm-auth-button--ghost { background: transparent; color: var(--bm-auth-text-2); box-shadow: none; }
.bm-auth-button--ghost:hover { background: #F1F5F9; color: var(--bm-auth-text); }

.bm-auth-alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; margin-bottom: 4px; }
.bm-auth-alert svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; }
.bm-auth-alert ul { margin: 4px 0 0; padding-left: 18px; }
.bm-auth-alert--danger { background: var(--bm-auth-danger-bg); color: var(--bm-auth-danger); border: 1px solid #FECACA; }
.bm-auth-alert--success { background: var(--bm-auth-success-bg); color: var(--bm-auth-success); border: 1px solid #BBF7D0; }

.bm-auth__legal { margin-top: 32px; font-size: 13px; color: var(--bm-auth-muted); text-align: center; }

/* Breite Inhalte (Nutzungsbedingungen, Datenschutz) */
.bm-auth--page { display: block; }
.bm-auth--page .bm-auth__main { align-items: flex-start; }
.bm-auth--page .bm-auth__card { max-width: 760px; background: #FFFFFF; border: 1px solid var(--bm-auth-border); border-radius: 16px; padding: 32px; }
.bm-auth--page .bm-auth__card-logo { display: flex; }

@media (max-width: 960px) {
    .bm-auth { grid-template-columns: 1fr; }
    .bm-auth__brand { display: none; }
    .bm-auth__main { align-items: flex-start; padding: 40px 16px; }
    .bm-auth__card-logo { display: flex; }
}
.bm-auth__card-logo { align-items: center; gap: 10px; margin-bottom: 28px; text-decoration: none; }
.bm-auth__card-logo-mark { display: flex; }
.bm-auth__card-logo svg { width: 36px; height: 36px; }
.bm-auth__card-logo span { font-size: 18px; font-weight: 700; color: var(--bm-auth-text); }

@media (prefers-reduced-motion: reduce) { .bm-auth-input, .bm-auth-button { transition: none; } }
[x-cloak] { display: none !important; }
