/* ==========================================================================
   belegbuddy Anmeldung / Registrierung (login.php)
   Wie die Landingpage belegbuddy.com: Standbild aus dem Hero-Video mit Blau-Ueberlagerung (#2f6fed); Schrift Roboto wie die App (app.bundle.css)
   ========================================================================== */
:root {
	--bb-blue: #2f6fed;
	--bb-blue-deep: #2a5fd6;
	--bb-blue-dark: #16306b;
	--bb-ink: #1f2937;
	--bb-muted: #6b7280;
	--bb-line: #e3e8f4;
	--bb-field: #f4f6fb;
	--bb-radius: 18px;
}

body.bb-auth {
	margin: 0; min-height: 100vh;
	font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	color: var(--bb-ink); background: var(--bb-blue-dark);
	display: flex; flex-direction: column; position: relative;
	-webkit-font-smoothing: antialiased;
}

/* Hintergrund: Video-Standbild + Leadfarbe (wie .hero__overlay auf der Landingpage) */
.bb-bg { position: fixed; inset: 0; z-index: 0; background: url('../img/login_bg.jpg') center / cover no-repeat; }
.bb-bg::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(47, 111, 237, .90) 0%, rgba(47, 111, 237, .82) 55%, rgba(22, 48, 107, .78) 100%);
}
.bb-auth-top, .bb-auth-main, .bb-auth-footer { position: relative; z-index: 1; }

/* Kopfzeile */
.bb-auth-top { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; width: 100%; margin: 0 auto; padding: 24px 28px 0; }
.bb-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; font-weight: 700; font-size: 20px; letter-spacing: .2px; text-decoration: none !important; }
.bb-brand svg { width: 26px; height: 32px; color: #fff; }
.bb-auth-top .bb-top-link { color: rgba(255, 255, 255, .8); font-size: 14px; }
.bb-auth-top .bb-top-link a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Inhalt: Text links, Anmeldebox mitte-rechts */
.bb-auth-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 72px; padding: 40px 28px 30px; }

.bb-intro { flex: 0 1 440px; color: #fff; }   /* Text und Box als Gruppe mittig, nicht an die Raender gedrueckt */
.bb-intro .bb-kicker { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; opacity: .8; margin-bottom: 14px; }
.bb-intro h1 { color: #fff; font-weight: 300; font-size: 50px; line-height: 1.08; margin: 0 0 18px; letter-spacing: .5px; text-transform: uppercase; }
.bb-intro h1 b { font-weight: 900; color: #fff; }
.bb-intro p { font-size: 17px; line-height: 1.6; margin: 0; opacity: .92; }
.bb-intro .bb-points { list-style: none; padding: 0; margin: 24px 0 30px; font-size: 15.5px; }
.bb-intro .bb-points li { display: flex; align-items: center; gap: 12px; margin: 9px 0; }
.bb-intro .bb-points i { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.bb-ghost { display: inline-block; color: #fff !important; font-size: 14px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; border: 2px solid rgba(255, 255, 255, .85); border-radius: 4px; padding: 13px 26px; transition: .2s; text-decoration: none !important; }
.bb-ghost:hover { background: #fff; color: var(--bb-blue-deep) !important; }

/* weisse Anmeldebox */
.bb-card {
	flex: 0 0 460px; background: #fff; border-radius: var(--bb-radius); overflow: hidden;
	box-shadow: 0 40px 80px -24px rgba(10, 24, 60, .55), 0 2px 8px rgba(10, 24, 60, .12);
}
.bb-card--wide { flex-basis: 560px; }
.bb-form { padding: 44px 46px; }
.bb-form h2 { font-size: 30px; font-weight: 900; color: var(--bb-ink); margin: 0 0 6px; letter-spacing: .2px; }
.bb-form .bb-sub { color: var(--bb-muted); font-size: 15px; line-height: 1.55; margin: 0 0 26px; }
.bb-form .alert { border-radius: 10px; font-size: 14px; margin-bottom: 20px; }

.bb-form .form-group { margin-bottom: 18px; }
.bb-form .form-label { font-size: 13px; font-weight: 700; color: var(--bb-ink); margin-bottom: 7px; letter-spacing: .2px; }
.bb-field { position: relative; }
.bb-field > .bb-ico { position: absolute; left: 16px; top: 25px; transform: translateY(-50%); color: #9aa3b8; font-size: 15px; pointer-events: none; z-index: 3; }
.bb-form .form-control {
	height: 50px; border-radius: 10px !important; border: 1.5px solid transparent; background: var(--bb-field);
	font-size: 15px; color: var(--bb-ink); padding: 0 16px; box-shadow: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
.bb-field > .bb-ico ~ .form-control { padding-left: 44px; }
.bb-form select.form-control { padding-right: 32px; }
.bb-form .form-control::placeholder { color: #9aa3b8; }
.bb-form .form-control:focus { background: #fff; border-color: var(--bb-blue); box-shadow: 0 0 0 4px rgba(47, 111, 237, .12); }
.bb-form .was-validated .form-control:invalid { border-color: #e5484d; background-image: none; }
.bb-form .was-validated .form-control:valid { border-color: transparent; background-image: none; }
.bb-pw-toggle { position: absolute; right: 8px; top: 25px; transform: translateY(-50%); z-index: 3; border: 0; background: none; color: var(--bb-blue); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 8px 10px; cursor: pointer; border-radius: 8px; }
.bb-pw-toggle:hover { background: rgba(47, 111, 237, .08); }
.bb-field > .bb-pw-toggle ~ .form-control { padding-right: 104px; }
.bb-form .help-block { font-size: 12.5px; color: var(--bb-muted); margin-top: 6px; }
.bb-form .invalid-feedback { font-size: 12.5px; }

.bb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 22px; font-size: 14px; }
.bb-row a, .bb-form .bb-link { color: var(--bb-blue); font-weight: 700; }
.bb-form .custom-control-label { font-size: 14px; color: #4b5563; line-height: 1.5; }
.bb-form .custom-control-label a { color: var(--bb-blue); font-weight: 700; }

.bb-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; border-radius: 10px; font-size: 15px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; border: 2px solid transparent; cursor: pointer; transition: .2s; text-decoration: none !important; }
.bb-btn--primary { background: var(--bb-blue); color: #fff !important;  }
.bb-btn--primary:hover { background: var(--bb-blue-dark); }
.bb-btn--outline { background: #fff; color: var(--bb-ink) !important; border-color: var(--bb-line); text-transform: none; letter-spacing: .2px; }
.bb-btn--outline:hover { border-color: var(--bb-blue); color: var(--bb-blue-dark) !important; }
.bb-btn img { width: 20px; height: 20px; }
.bb-or { display: flex; align-items: center; gap: 14px; color: #9aa3b8; font-size: 13px; margin: 20px 0; text-transform: uppercase; letter-spacing: 1px; }
.bb-or::before, .bb-or::after { content: ""; flex: 1; height: 1px; background: var(--bb-line); }
.bb-foot-note { text-align: center; margin-top: 24px; font-size: 14px; color: var(--bb-muted); }
.bb-foot-note a { color: var(--bb-blue); font-weight: 700; }

.bb-auth-footer { text-align: center; padding: 10px 16px 22px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.bb-auth-footer a { color: #fff; font-weight: 700; }

/* Passwortstaerke (password-checker) */
.bb-form #id_strip .badge { font-size: 11px; padding: 5px 9px; border-radius: 6px; }

/* Links unter der Box nur am Handy (dort fehlen Text und Kopf-Link) */
.bb-mobile-only { display: none; }

/* schmalere Bildschirme: Text wird kleiner, darunter nur noch die Box */
@media (max-width: 1060px) {
	.bb-intro h1 { font-size: 40px; }
	.bb-auth-main { gap: 48px; }
}
@media (max-width: 860px) {
	.bb-auth-main { flex-direction: column; justify-content: flex-start; gap: 0; padding: 22px 16px 20px; }
	.bb-intro { display: none; }   /* Handy: unter dem Logo gleich die weisse Box */
	.bb-auth-top .bb-top-link { display: none; }
	.bb-mobile-only { display: block; }
	.bb-card, .bb-card--wide { flex-basis: auto; width: 100%; max-width: 520px; }
	.bb-form { padding: 30px 24px 32px; }
}

/* Apple-Button im selben Stil wie Google (weiss mit Rahmen), Logo bleibt schwarz */

.bb-btn--apple svg { width: 17px; height: 20px; margin-top: -3px; color: #000; }

/* Sprachumschalter DE | EN (wie Landingpage .lang-switch) */
.bb-top-right { display: flex; align-items: center; gap: 22px; }
.bb-lang { display: flex; align-items: center; gap: 6px; }
.bb-lang-btn { background: none; border: 0; color: #fff; font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer; padding: 2px; opacity: .65; transition: opacity .2s; }
.bb-lang-btn:hover { opacity: 1; }
.bb-lang-btn.active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.bb-lang-sep { color: #fff; opacity: .5; font-size: 13px; }
