/* Login-Seite im Design der brixxbox-Website (bbwebsite).
   Alles unter .bbl gescoped, damit SmartAdmin/Bootstrap aus _AuthLoginLayout nicht reinfunkt. */

@font-face { font-family: 'BB DM Sans'; font-style: normal; font-display: swap; font-weight: 500; src: url('/fonts/brand/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'BB DM Sans'; font-style: normal; font-display: swap; font-weight: 600; src: url('/fonts/brand/dm-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'BB DM Sans'; font-style: normal; font-display: swap; font-weight: 700; src: url('/fonts/brand/dm-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'BB Inter'; font-style: normal; font-display: swap; font-weight: 400; src: url('/fonts/brand/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'BB Inter'; font-style: normal; font-display: swap; font-weight: 500; src: url('/fonts/brand/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'BB Inter'; font-style: normal; font-display: swap; font-weight: 600; src: url('/fonts/brand/inter-latin-600-normal.woff2') format('woff2'); }

.bbl {
    --bg: #F5F5F7;
    --surface: #FFFFFF;
    --ink: #0F1A26;
    --ink-soft: #2F3D4F;
    --muted: #6A7787;
    --faint: #A8B2BF;
    --line: #DDD9CC;
    --line-soft: #EDE9DC;
    --teal-1: #14B8A6;
    --teal-deep: #0A7F76;
    --error: #B3261E;
    --grad-hero:
        radial-gradient(900px circle at 12% 18%, #CCFBF1 0%, transparent 50%),
        radial-gradient(800px circle at 88% 22%, #DBEAFE 0%, transparent 55%),
        radial-gradient(700px circle at 65% 85%, #CFFAFE 0%, transparent 50%),
        radial-gradient(600px circle at 20% 90%, #E0E7FF 0%, transparent 55%);
    --grad-statement: linear-gradient(135deg, #0A7F76 0%, #0891B2 50%, #2563EB 100%);
    --grad-button: linear-gradient(135deg, #14B8A6 0%, #3B82F6 100%);
    --grad-button-hover: linear-gradient(135deg, #0EA5A4 0%, #2563EB 100%);
    --shadow-lift: 0 16px 48px rgba(20, 184, 166, 0.16), 0 4px 12px rgba(20, 184, 166, 0.08);
    --r: 16px;
    --r-lg: 24px;
    --r-pill: 999px;
    --font-display: 'BB DM Sans', system-ui, sans-serif;
    --font-body: 'BB Inter', system-ui, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    position: fixed;
    inset: 0;
    z-index: 10;
    overflow-y: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.bbl *, .bbl *::before, .bbl *::after { box-sizing: border-box; }

/* ---------- Brand-Panel (links) ---------- */
.bbl-brand {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    background: var(--grad-statement);
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
}
/* White-Label: Partner-Hintergrundfarbe ersetzt den Verlauf */
.bbl-brand.is-whitelabel { background-image: none; }

.bbl-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px circle at 85% 10%, rgba(255, 255, 255, 0.18) 0%, transparent 60%),
        radial-gradient(500px circle at 10% 95%, rgba(20, 184, 166, 0.35) 0%, transparent 60%);
    pointer-events: none;
}
.bbl-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
    pointer-events: none;
}
.bbl-brand > * { position: relative; z-index: 1; }

.bbl-brand-logo img { width: 180px; height: auto; display: block; }

/* Textblock mittig in der Fläche, Text selbst bleibt linksbündig */
.bbl-brand-copy { width: 100%; max-width: 440px; align-self: center; }
.bbl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 18px;
}
.bbl-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}
.bbl-brand h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(32px, 3.4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: #fff;
}
.bbl-brand p {
    margin: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.82);
}
.bbl-brand-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.bbl .bbl-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.bbl .bbl-brand-link:hover,
.bbl .bbl-brand-link:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    text-decoration: none;
}

/* ---------- Formular-Seite (rechts) ---------- */
.bbl-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: safe center;
    padding: 48px 24px;
    background: var(--grad-hero), var(--bg);
    min-height: 100vh;
}

.bbl-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid rgba(221, 217, 204, 0.6);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lift);
    padding: 40px 36px 32px;
    animation: bbl-rise 0.6s var(--ease-out) both;
}
@keyframes bbl-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.bbl-mobile-logo { display: none; }

.bbl-card h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 28px;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 6px;
    color: var(--ink);
}
.bbl-sub {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 14px;
}

.bbl-alert {
    list-style: none;
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #FDECEA;
    border: 1px solid #F5C2BE;
    color: var(--error);
    font-size: 13.5px;
}
.bbl-alert li + li { margin-top: 4px; }

.bbl-field { margin-bottom: 16px; }
.bbl-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-soft);
    margin: 0 0 7px;
}
.bbl-input {
    display: block;
    width: 100%;
    height: 48px;
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--r);
    padding: 0 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.bbl-input::placeholder { color: var(--faint); }
.bbl-input:focus {
    outline: none;
    border-color: var(--teal-1);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}
.bbl-input.error { border-color: var(--error); }

/* jQuery-Validate-Meldungen (errorPlacement: hinter das .bbl-field-Element) */
.bbl label.error {
    display: block;
    margin: -10px 0 14px;
    font-size: 12.5px;
    font-weight: 400;
    color: var(--error);
}

.bbl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 4px 0 24px;
    font-size: 13.5px;
}
.bbl-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-weight: 400;
    color: var(--ink-soft);
    white-space: nowrap;
    cursor: pointer;
}
.bbl-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--teal-1);
    cursor: pointer;
}

.bbl a { color: var(--teal-deep); font-weight: 500; text-decoration: none; }
.bbl a:hover, .bbl a:focus { color: var(--teal-1); text-decoration: underline; }

.bbl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
}
.bbl-btn-primary {
    background: var(--grad-button);
    color: #fff;
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.32);
}
.bbl-btn-primary:hover, .bbl-btn-primary:focus-visible {
    background: var(--grad-button-hover);
    box-shadow: 0 12px 32px rgba(20, 184, 166, 0.44);
    transform: translateY(-1px);
    outline: none;
}
.bbl-btn-primary svg { transition: transform 0.25s var(--ease-out); }
.bbl-btn-primary:hover svg { transform: translateX(3px); }

.bbl-btn-outline {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
}
.bbl-btn-outline:hover, .bbl-btn-outline:focus-visible {
    border-color: var(--teal-1);
    background: #F0FDFA;
    outline: none;
}

.bbl-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 18px;
    font-size: 12px;
    color: var(--faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.bbl-divider::before, .bbl-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line-soft);
}

.bbl-social form + form,
.bbl-social > button + form { margin-top: 10px; }
.bbl-btn[hidden] { display: none; }
.bbl-social form { margin: 0; }

.bbl-meta {
    margin: 22px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.bbl-copy {
    margin-top: 24px;
    font-size: 12px;
    color: var(--muted);
}

/* ---------- Weitere Account-Seiten (Registrierung, Passwort, Bestätigungen) ---------- */
.bbl-card-wide { max-width: 480px; }
.bbl-card h1 + form { margin-top: 24px; }
.bbl a.bbl-btn { color: inherit; text-decoration: none; }
.bbl a.bbl-btn-primary { color: #fff; }

.bbl-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #CCFBF1 0%, #DBEAFE 100%);
    color: var(--teal-deep);
}
.bbl-icon.is-danger { background: #FDECEA; color: var(--error); }

.bbl-text {
    margin: 0 0 24px;
    color: var(--ink-soft);
    font-size: 15px;
}

.bbl-consent {
    margin: 0 0 12px;
    font-size: 13.5px;
}
.bbl-consent .bbl-check {
    align-items: flex-start;
    white-space: normal;
    line-height: 1.45;
}
.bbl-consent .bbl-check input { margin-top: 1px; flex: none; }
.bbl .bbl-consent label.error { margin: 4px 0 0 25px; }

.bbl-note {
    margin: 4px 0 20px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #F0FDFA;
    color: var(--ink-soft);
    font-size: 13px;
}

/* ASP.NET-Validierung (asp-validation-summary / asp-validation-for) */
.bbl .validation-summary-errors ul {
    list-style: none;
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #FDECEA;
    border: 1px solid #F5C2BE;
    color: var(--error);
    font-size: 13.5px;
}
.bbl .validation-summary-valid { display: none; }
.bbl .field-validation-error {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--error);
}
.bbl .input-validation-error { border-color: var(--error); }

.bbl-btn[disabled] { opacity: 0.7; cursor: default; transform: none; }
.bbl-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bbl-spin 0.8s linear infinite;
}
.bbl-spinner.hidden { display: none; }
@keyframes bbl-spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .bbl { grid-template-columns: 1fr; }
    .bbl-brand { display: none; }
    .bbl-main { padding: 32px 16px; }
    .bbl-mobile-logo {
        display: flex;
        justify-content: center;
        margin: 0 auto 24px;
        padding: 14px 22px;
        border-radius: var(--r);
        background: var(--grad-statement);
        width: fit-content;
    }
    .bbl-mobile-logo.is-whitelabel { background-image: none; }
    .bbl-mobile-logo.is-plain { background: none; padding: 0; }
    .bbl-mobile-logo.is-plain img { width: 150px; }
    .bbl-mobile-logo img { width: 120px; height: auto; display: block; }
}
@media (max-width: 420px) {
    .bbl-card { padding: 32px 22px 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .bbl-card { animation: none; }
    .bbl-btn, .bbl-btn svg { transition: none; }
}
