/* ============================================================
   BizBaby — authentication surface (login page + modal, password
   reset, and the shared success / error states).

   Scoped under .bb-auth (pages) and #login-form-modal (the modal) so it
   never leaks into the application UI. Every legacy JS hook is preserved:
   #login-form, form#login, .validation-errors, .error-container,
   .error-message, .password, .placeholder-logo, button[name=submit_button].
   ============================================================ */
:root{
  --bb-primary:#DB3A57; --bb-primary-hover:#C22F4A; --bb-primary-soft:#FFF1F5;
  --bb-bg:#FAF7F2; --bb-surface:#FFFFFF; --bb-inset:#F6F6F6;
  --bb-text:#2B2622; --bb-text-2:#6E6660; --bb-text-3:#A39B93;
  --bb-border:#EAE4DC; --bb-border-strong:#D9D2C8;
  --bb-success:#1E7B4D; --bb-success-bg:#E6F4EC;
  --bb-danger:#B3261E; --bb-danger-bg:#FDECEA;
  --bb-amber:#B45D08; --bb-amber-bg:#FDF0DC;
  --bb-auth-font:'Rubik',system-ui,'Segoe UI',sans-serif;
}

/* ---------------- page shell: form left, brand panel right ---------------- */
.bb-auth{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.92fr);background:var(--bb-bg);font-family:var(--bb-auth-font);color:var(--bb-text)}
.bb-auth *{box-sizing:border-box}
.bb-auth__main{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:48px 24px 56px}
.bb-auth__card{width:100%;max-width:452px}
.bb-auth__logo{display:block;margin:0 auto 34px}
.bb-auth__logo img{height:38px;width:auto;display:block;margin:0 auto}
.bb-auth__head{text-align:center;margin-bottom:28px}
.bb-auth__head h1{margin:0;font-size:clamp(26px,3vw,33px);font-weight:800;letter-spacing:-.5px;line-height:1.15;color:var(--bb-text)}
.bb-auth__head p{margin:10px 0 0;color:var(--bb-text-2);font-size:15.5px;line-height:1.55}
.bb-auth__panel{position:relative;overflow:hidden;background:#211E1B}
.bb-auth__panel img.bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:66% 42%}
.bb-auth__panel::after{content:"";position:absolute;inset:0;background:linear-gradient(150deg,rgba(150,32,60,.62),rgba(33,30,27,.72) 55%,rgba(33,30,27,.9))}
.bb-auth__quote{position:relative;z-index:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;padding:56px max(40px,4vw);color:#F4EDE3}
.bb-auth__quote .bb-auth__mark{display:block;font-size:64px;font-weight:800;line-height:.5;color:#F8A9BB;margin-bottom:24px}
.bb-auth__quote blockquote{margin:0;font-size:clamp(21px,2.2vw,28px);font-weight:700;line-height:1.3;letter-spacing:-.3px}
.bb-auth__quote footer{display:flex;align-items:center;gap:13px;margin-top:26px}
.bb-auth__quote footer img{width:46px;height:46px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.5)}
.bb-auth__quote footer b{display:block;font-size:15px}
.bb-auth__quote footer span{color:#B7AC9E;font-size:13px}
.bb-auth__back{display:inline-flex;align-items:center;gap:8px;margin-top:26px;color:var(--bb-text-2);font-size:14px;font-weight:600;text-decoration:none}
.bb-auth__back:hover{color:var(--bb-primary);text-decoration:none}
.bb-auth__back svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------------- fields ---------------- */
.bb-auth .bb-field{margin-bottom:18px}
.bb-auth .bb-field > label,
.bb-auth .form-label{display:block;margin-bottom:7px;font-size:12.5px;font-weight:700;color:var(--bb-text);letter-spacing:.1px}
.bb-auth .form-control,
#login-form-modal .form-control{width:100%;min-height:44px;padding:10px 14px;border:1px solid var(--bb-border-strong);border-radius:8px;background:var(--bb-surface);color:var(--bb-text);font-family:var(--bb-auth-font);font-size:14.5px;line-height:1.4;box-shadow:none;transition:border-color .15s,box-shadow .15s}
.bb-auth .form-control::placeholder,
#login-form-modal .form-control::placeholder{color:var(--bb-text-3)}
.bb-auth .form-control:focus,
#login-form-modal .form-control:focus{outline:none;border-color:var(--bb-primary);box-shadow:0 0 0 3px rgba(219,58,87,.13)}
.bb-auth .form-control.is-invalid,
.bb-auth .error-field .form-control{border-color:var(--bb-danger);box-shadow:0 0 0 4px rgba(179,38,30,.1)}
.bb-auth .password{position:relative}
.bb-auth .bb-field__row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:7px}
.bb-auth .bb-field__row label{margin-bottom:0}
.bb-auth .bb-link{color:var(--bb-primary);font-size:13.5px;font-weight:600;text-decoration:none}
.bb-auth .bb-link:hover{color:var(--bb-primary-hover);text-decoration:underline}

/* ---------------- buttons ---------------- */
.bb-auth .bb-btn,
#login-form-modal .bb-btn{display:inline-flex;width:100%;min-height:52px;align-items:center;justify-content:center;gap:10px;padding:14px 26px;border:1px solid var(--bb-primary);border-radius:10px;background:var(--bb-primary);color:#fff;font-family:var(--bb-auth-font);font-size:15px;font-weight:700;line-height:1;cursor:pointer;transition:background .15s,border-color .15s,transform .15s,box-shadow .15s}
.bb-auth .bb-btn:hover,
#login-form-modal .bb-btn:hover{background:var(--bb-primary-hover);border-color:var(--bb-primary-hover);color:#fff;transform:translateY(-1px);box-shadow:0 12px 24px -12px rgba(219,58,87,.6)}
.bb-auth .bb-btn:disabled,
#login-form-modal .bb-btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.bb-auth .bb-btn--ghost{background:transparent;color:var(--bb-text);border-color:var(--bb-border-strong)}
.bb-auth .bb-btn--ghost:hover{background:var(--bb-primary);border-color:var(--bb-primary);color:#fff}

/* ---------------- footer line under the form ---------------- */
.bb-auth__alt{margin-top:24px;text-align:center;color:var(--bb-text-2);font-size:14.5px}
.bb-auth__alt a{color:var(--bb-primary);font-weight:700;text-decoration:none}
.bb-auth__alt a:hover{text-decoration:underline}
.bb-auth__rule{display:flex;align-items:center;gap:14px;margin:26px 0 22px;color:var(--bb-text-3);font-size:12px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase}
.bb-auth__rule::before,.bb-auth__rule::after{content:"";flex:1;height:1px;background:var(--bb-border)}

/* ---------------- alerts: error / success / info ----------------
   .error-container and .error-message are produced by resources/js/auth.js —
   they must keep their names, so they are styled rather than replaced. */
.bb-alert,
.bb-auth .error-container,
#login-form-modal .error-container{display:flex;gap:11px;align-items:flex-start;text-align:left;padding:13px 15px;border-radius:12px;border:1px solid var(--bb-danger);background:var(--bb-danger-bg);color:#7F1D18;font-size:14px;line-height:1.5;margin-bottom:18px}
.bb-alert::before,
.bb-auth .error-container::before,
#login-form-modal .error-container::before{content:"!";flex:none;width:20px;height:20px;border-radius:50%;background:var(--bb-danger);color:#fff;font-size:13px;font-weight:800;line-height:20px;text-align:center}
.bb-alert p,
.bb-auth .error-message,
#login-form-modal .error-message{margin:0;font-weight:600}
.bb-alert p + p,
.bb-auth .error-message + .error-message{margin-top:4px}
.bb-alert--success{border-color:var(--bb-success);background:var(--bb-success-bg);color:#125635}
.bb-alert--success::before{content:"✓";background:var(--bb-success)}
.bb-alert--info{border-color:var(--bb-amber);background:var(--bb-amber-bg);color:#7A3D05}
.bb-alert--info::before{content:"i";background:var(--bb-amber);font-style:italic}
.bb-auth .validation-errors:empty{display:none}

/* ---------------- full success / error state (e.g. "email sent") ---------------- */
.bb-state{text-align:center;padding:8px 0 4px}
.bb-state__badge{width:78px;height:78px;margin:0 auto 22px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--bb-success-bg);color:var(--bb-success);position:relative}
.bb-state__badge svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.bb-state__badge::after{content:"";position:absolute;inset:-9px;border-radius:50%;border:2px solid rgba(30,123,77,.25)}
.bb-state--error .bb-state__badge{background:var(--bb-danger-bg);color:var(--bb-danger)}
.bb-state--error .bb-state__badge::after{border-color:rgba(179,38,30,.22)}
.bb-state h2{margin:0 0 10px;font-size:23px;font-weight:800;letter-spacing:-.3px}
.bb-state p{margin:0 auto;max-width:360px;color:var(--bb-text-2);font-size:15px;line-height:1.6}
.bb-state .bb-btn{margin-top:26px}

/* ---------------- password requirements (password_requirements.js) ---------------- */
.bb-auth .password-requirements,
.bb-auth #password-requirements{margin:4px 0 20px;padding:14px 16px;border:1px solid var(--bb-border);border-radius:12px;background:var(--bb-inset);font-size:13px;color:var(--bb-text-2)}
.bb-auth .password-requirements li,
.bb-auth #password-requirements li{list-style:none;margin:4px 0}

/* ---------------- the login modal ---------------- */
#login-form-modal .modal-dialog{max-width:452px}
#login-form-modal .modal-content{border:1px solid var(--bb-border);border-radius:20px;box-shadow:0 44px 88px -30px rgba(60,45,30,.45);overflow:hidden;font-family:var(--bb-auth-font);color:var(--bb-text)}
#login-form-modal .modal-body{padding:24px 36px 30px}
#login-form-modal .modal-header{border-bottom:0;padding:18px 18px 0}
#login-form-modal .bb-auth__head{text-align:center;margin-bottom:24px}
#login-form-modal .bb-auth__head h1{margin:0;font-size:26px;font-weight:800;letter-spacing:-.4px}
#login-form-modal .bb-auth__head p{margin:9px 0 0;color:var(--bb-text-2);font-size:14.5px}
#login-form-modal .bb-field{margin-bottom:18px}
#login-form-modal .form-label{display:block;margin-bottom:7px;font-size:12.5px;font-weight:700}
#login-form-modal .bb-auth__alt{margin-top:22px;text-align:center;color:var(--bb-text-2);font-size:14.5px}
#login-form-modal .bb-auth__alt a{color:var(--bb-primary);font-weight:700;text-decoration:none}
#login-form-modal .bb-link{color:var(--bb-primary);font-size:13.5px;font-weight:600;text-decoration:none}
#login-form-modal .validation-errors:empty{display:none}

/* ---------------- responsive ---------------- */
@media (max-width:1000px){
  .bb-auth{grid-template-columns:1fr;min-height:100vh}
  .bb-auth__panel{display:none}
  .bb-auth__main{padding:40px 22px 48px}
}
@media (max-width:520px){
  .bb-auth__card{max-width:none}
  .bb-auth__logo{margin-bottom:26px}
  #login-form-modal .modal-body{padding:6px 22px 26px}
}
@media (prefers-reduced-motion:reduce){
  .bb-auth *,#login-form-modal *{transition:none!important;animation:none!important}
}

/* ---------------- the auth screens own the viewport ----------------
   layouts.app does not output a body class, so the app chrome is stood down
   by matching the page content itself (same :has() pattern as v6 pricing). */
body:has(.bb-auth) main{padding:0!important;margin:0!important;max-width:none!important}
body:has(.bb-auth) header,
body:has(.bb-auth) nav.navbar,
body:has(.bb-auth) > div > footer,
body:has(.bb-auth) .footer{display:none!important}
body:has(.bb-auth){background:var(--bb-bg);overflow-x:hidden}
body:has(.bb-auth) .main-content{margin:0!important;padding:0!important}
body:has(.bb-auth) .row{margin-left:0!important;margin-right:0!important}
body:has(.bb-auth) .col-12{padding-left:0!important;padding-right:0!important}

/* ---------------- the live modals (default_modal.login / .reset-password) ----------------
   Rendered by layouts/navigation.blade.php. Classes only — JS hooks untouched. */
#login-form-modal label,#reset-password-modal label{display:block;margin-bottom:7px;font-size:12.5px;font-weight:700;color:var(--bb-text)}
#login-form-modal .required,#reset-password-modal .required{color:var(--bb-primary)}
#reset-password-modal .modal-content{border:1px solid var(--bb-border);border-radius:20px;box-shadow:0 44px 88px -30px rgba(60,45,30,.45);font-family:var(--bb-auth-font);color:var(--bb-text)}
#reset-password-modal .modal-body{padding:24px 36px 30px}
#reset-password-modal .form-control{width:100%;min-height:44px;padding:10px 14px;border:1px solid var(--bb-border-strong);border-radius:8px;background:var(--bb-surface);font-family:var(--bb-auth-font);font-size:14.5px;transition:border-color .15s,box-shadow .15s}
#reset-password-modal .form-control:focus{outline:none;border-color:var(--bb-primary);box-shadow:0 0 0 3px rgba(219,58,87,.13)}
#login-form-modal .red-link,#reset-password-modal .red-link{color:var(--bb-primary);font-weight:700;text-decoration:none}
#login-form-modal .red-link:hover,#reset-password-modal .red-link:hover{text-decoration:underline}
#reset-password-modal .success-container.bb-state .status{margin:0 0 10px;font-size:23px;font-weight:800;letter-spacing:-.3px;color:var(--bb-text)}
#reset-password-modal .success-container.bb-state .description{margin:0 auto;max-width:360px;color:var(--bb-text-2);font-size:15px;line-height:1.6}
#login-form-modal .error-container,#reset-password-modal .error-container{margin-bottom:16px}

/* ---------------- register modal (auth.register_form) ----------------
   Styled by selector only — the register form keeps every id, name and hook. */
#register-form-modal .modal-content{border:1px solid var(--bb-border);border-radius:20px;box-shadow:0 44px 88px -30px rgba(60,45,30,.45);font-family:var(--bb-auth-font);color:var(--bb-text)}
#register-form-modal .modal-body{padding:24px 36px 30px}
#register-form-modal label{display:block;margin-bottom:7px;font-size:12.5px;font-weight:700;color:var(--bb-text)}
#register-form-modal .form-control{width:100%;min-height:44px;padding:10px 14px;border:1px solid var(--bb-border-strong);border-radius:8px;background:var(--bb-surface);font-family:var(--bb-auth-font);font-size:14.5px;line-height:1.4;box-shadow:none;transition:border-color .15s,box-shadow .15s}
#register-form-modal .form-control:focus{outline:none;border-color:var(--bb-primary);box-shadow:0 0 0 3px rgba(219,58,87,.13)}
#register-form-modal button[type=submit]{display:inline-flex;width:100%;min-height:46px;align-items:center;justify-content:center;padding:12px 26px;border:1px solid var(--bb-primary);border-radius:8px;background:var(--bb-primary);color:#fff;font-family:var(--bb-auth-font);font-size:15px;font-weight:700;line-height:1;transition:background .15s,transform .15s,box-shadow .15s}
#register-form-modal button[type=submit]:hover{background:var(--bb-primary-hover);border-color:var(--bb-primary-hover);transform:translateY(-1px);box-shadow:0 12px 24px -12px rgba(219,58,87,.6)}
#register-form-modal .red-link,#register-form-modal a{color:var(--bb-primary);font-weight:600;text-decoration:none}
#register-form-modal .red-link:hover,#register-form-modal a:hover{text-decoration:underline}
#register-form-modal .alert-danger,#register-form-modal .error-container{display:flex;gap:11px;align-items:flex-start;padding:13px 15px;border-radius:12px;border:1px solid var(--bb-danger);background:var(--bb-danger-bg);color:#7F1D18;font-size:14px;margin-bottom:16px}
#register-form-modal .validation-errors:empty{display:none}

/* ============================================================
   Login / Sign up modals — approved draft styling (main-page-v4.html).
   Applied on every surface using the new design; legacy app pages keep Bootstrap.
   ============================================================ */
body:has(header.mkt-header) .modal,
body:has(.bb-auth) .modal{position:fixed;inset:0;z-index:1050;display:none;overflow-x:hidden;overflow-y:auto;outline:0;padding:28px 16px}
body:has(header.mkt-header) .modal.show,
body:has(.bb-auth) .modal.show{display:block}
body:has(header.mkt-header) .modal-backdrop,
body:has(.bb-auth) .modal-backdrop{position:fixed;inset:0;z-index:1040;background:#211E1B}
body:has(header.mkt-header) .modal-backdrop.show,
body:has(.bb-auth) .modal-backdrop.show{opacity:.55}
body:has(header.mkt-header) .modal-dialog,
body:has(.bb-auth) .modal-dialog{position:relative;width:100%;max-width:452px!important;margin:0 auto;pointer-events:none}
body:has(header.mkt-header) .modal-dialog-centered,
body:has(.bb-auth) .modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - 56px)}
body:has(header.mkt-header) #register-form-modal .modal-dialog,
body:has(.bb-auth) #register-form-modal .modal-dialog{max-width:620px!important}
body:has(header.mkt-header) .modal-content,
body:has(.bb-auth) .modal-content{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background:var(--bb-surface);border:1px solid var(--bb-border);border-radius:22px;box-shadow:0 44px 88px -30px rgba(60,45,30,.5);overflow:hidden;font-family:var(--bb-auth-font);color:var(--bb-text)}
body:has(header.mkt-header) .modal-content,
body:has(.bb-auth) .modal-content{padding:0!important}
body:has(header.mkt-header) .modal-header,
body:has(.bb-auth) .modal-header{position:relative;display:block;border:0;margin:0!important;padding:30px 34px 0!important;text-align:center}
body:has(header.mkt-header) .modal-header .main-header,
body:has(.bb-auth) .modal-header .main-header{font-size:22px;font-weight:700;letter-spacing:-.2px;line-height:1.25;color:var(--bb-text)}
body:has(header.mkt-header) .modal-header .header-description,
body:has(.bb-auth) .modal-header .header-description{margin-top:8px;color:var(--bb-text-2);font-size:14px;line-height:1.55}
body:has(header.mkt-header) .modal-header .standart-close-btn,
body:has(.bb-auth) .modal-header .standart-close-btn{position:absolute!important;top:14px!important;right:14px!important;left:auto!important;margin:0!important;z-index:2}
body:has(header.mkt-header) .modal-header .close,
body:has(header.mkt-header) .modal-header [data-dismiss="modal"],
body:has(header.mkt-header) .modal-header .modal-close,
body:has(.bb-auth) .modal-header .close,
body:has(.bb-auth) .modal-header [data-dismiss="modal"],
body:has(.bb-auth) .modal-header .modal-close{position:relative;top:auto;right:auto;width:36px;height:36px;display:flex;align-items:center;justify-content:center;margin:0;padding:0;border:0;border-radius:50%;background:var(--bb-inset);color:var(--bb-text-2);font-size:18px;line-height:1;opacity:1;cursor:pointer;transition:background .15s,color .15s}
body:has(header.mkt-header) .modal-header .close:hover,
body:has(header.mkt-header) .modal-header [data-dismiss="modal"]:hover,
body:has(header.mkt-header) .modal-header .modal-close:hover,
body:has(.bb-auth) .modal-header .close:hover,
body:has(.bb-auth) .modal-header [data-dismiss="modal"]:hover,
body:has(.bb-auth) .modal-header .modal-close:hover{background:var(--bb-primary-soft);color:var(--bb-primary)}
body:has(header.mkt-header) .modal-header .standart-close-btn .close,
body:has(.bb-auth) .modal-header .standart-close-btn .close{position:static}
body:has(header.mkt-header) .modal-body,
body:has(.bb-auth) .modal-body{padding:24px 34px 30px!important}
body:has(header.mkt-header) #register-form-modal .modal-body,
body:has(.bb-auth) #register-form-modal .modal-body{padding:24px 36px 30px!important}
body:has(header.mkt-header) .modal-body label,
body:has(.bb-auth) .modal-body label{display:block;margin-bottom:7px;font-size:12.5px;font-weight:700;color:var(--bb-text)}
body:has(header.mkt-header) .modal-body .required,
body:has(.bb-auth) .modal-body .required{color:var(--bb-primary)}
body:has(header.mkt-header) .modal-body .form-control,
body:has(header.mkt-header) .modal-body .standard-input,
body:has(.bb-auth) .modal-body .form-control,
body:has(.bb-auth) .modal-body .standard-input{width:100%;min-height:44px;padding:10px 14px;border:1px solid var(--bb-border-strong);border-radius:8px;background:var(--bb-surface);font-family:var(--bb-auth-font);font-size:14.5px;color:var(--bb-text);box-shadow:none;transition:border-color .15s,box-shadow .15s}
body:has(header.mkt-header) .modal-body .form-control::placeholder,
body:has(.bb-auth) .modal-body .form-control::placeholder{color:var(--bb-text-3)}
body:has(header.mkt-header) .modal-body .form-control:focus,
body:has(header.mkt-header) .modal-body .standard-input:focus,
body:has(.bb-auth) .modal-body .form-control:focus,
body:has(.bb-auth) .modal-body .standard-input:focus{outline:none;border-color:var(--bb-primary);box-shadow:0 0 0 3px rgba(219,58,87,.13)}
body:has(header.mkt-header) .modal-body .pr-4,
body:has(.bb-auth) .modal-body .pr-4{padding-right:40px}
body:has(header.mkt-header) .modal-body .standard-input,
body:has(.bb-auth) .modal-body .standard-input{border:1px solid var(--bb-border-strong)!important;border-radius:8px!important;box-shadow:none!important;color:var(--bb-text)!important;font-family:var(--bb-auth-font)!important;font-size:14.5px!important}
body:has(header.mkt-header) .modal-body .standard-input:focus,
body:has(.bb-auth) .modal-body .standard-input:focus{border-color:var(--bb-primary)!important}
body:has(header.mkt-header) .modal-body button[type=submit],
body:has(header.mkt-header) .modal-body #reset-password,
body:has(.bb-auth) .modal-body button[type=submit],
body:has(.bb-auth) .modal-body #reset-password{display:flex;width:100%;min-height:46px;align-items:center;justify-content:center;margin-top:2px;border:1px solid var(--bb-primary);border-radius:8px;background:var(--bb-primary);color:#fff!important;font-family:var(--bb-auth-font);font-size:15px;font-weight:700;line-height:1;cursor:pointer;transition:background .15s,transform .15s,box-shadow .15s}
body:has(header.mkt-header) .modal-body button[type=submit]:hover:not(:disabled),
body:has(header.mkt-header) .modal-body #reset-password:hover,
body:has(.bb-auth) .modal-body button[type=submit]:hover:not(:disabled),
body:has(.bb-auth) .modal-body #reset-password:hover{background:var(--bb-primary-hover);border-color:var(--bb-primary-hover);transform:translateY(-1px);box-shadow:0 12px 24px -12px rgba(219,58,87,.6)}
body:has(header.mkt-header) .modal-body button[type=submit]:disabled,
body:has(.bb-auth) .modal-body button[type=submit]:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
body:has(header.mkt-header) .modal-body .text-center:last-child,
body:has(.bb-auth) .modal-body .text-center:last-child{margin-top:16px;color:var(--bb-text-2);font-size:14px}
body:has(header.mkt-header) .modal-body a,
body:has(header.mkt-header) .modal-body .red-link,
body:has(.bb-auth) .modal-body a,
body:has(.bb-auth) .modal-body .red-link{color:var(--bb-primary);font-weight:700;text-decoration:none}
body:has(header.mkt-header) .modal-body a:hover,
body:has(header.mkt-header) .modal-body .red-link:hover,
body:has(.bb-auth) .modal-body a:hover,
body:has(.bb-auth) .modal-body .red-link:hover{text-decoration:underline}
body:has(header.mkt-header) .modal-body .text-center u,
body:has(header.mkt-header) .modal-body a u,
body:has(.bb-auth) .modal-body .text-center u,
body:has(.bb-auth) .modal-body a u{text-decoration:none}
body:has(header.mkt-header) #password_requirements,
body:has(.bb-auth) #password_requirements{margin:0;padding:14px 16px;border:1px solid var(--bb-border);border-radius:8px;background:var(--bb-inset)}
body:has(header.mkt-header) .modal-body .row:has(#password_requirements),
body:has(.bb-auth) .modal-body .row:has(#password_requirements){margin-top:26px!important;margin-bottom:26px!important}
body:has(header.mkt-header) #password_requirements > p:first-child,
body:has(.bb-auth) #password_requirements > p:first-child{margin:0 0 9px;color:var(--bb-text-2);font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
body:has(header.mkt-header) #password_requirements > div,
body:has(.bb-auth) #password_requirements > div{position:relative;display:flex;align-items:center;gap:9px;margin:0;padding:3px 0;color:var(--bb-text-2);font-size:13px;line-height:1.4}
body:has(header.mkt-header) #password_requirements > div > p,
body:has(.bb-auth) #password_requirements > div > p{margin:0!important;font-size:13px;line-height:1.4}
body:has(header.mkt-header) #password_requirements .fa,
body:has(.bb-auth) #password_requirements .fa{display:none!important}
body:has(header.mkt-header) #password_requirements > div::before,
body:has(.bb-auth) #password_requirements > div::before{width:16px;height:16px;flex:none;border:1.5px solid var(--bb-border-strong);border-radius:50%;background:var(--bb-surface);content:"";transition:background .15s,border-color .15s}
body:has(header.mkt-header) #password_requirements > div::after,
body:has(.bb-auth) #password_requirements > div::after{position:absolute;top:50%;left:5px;width:6px;height:3px;border-bottom:2px solid #fff;border-left:2px solid #fff;content:"";opacity:0;transform:translateY(-70%) rotate(-45deg);transition:opacity .15s}
body:has(header.mkt-header) #password_requirements > div.text-success,
body:has(.bb-auth) #password_requirements > div.text-success{color:var(--bb-success)}
body:has(header.mkt-header) #password_requirements > div.text-success::before,
body:has(.bb-auth) #password_requirements > div.text-success::before{border-color:var(--bb-success);background:var(--bb-success)}
body:has(header.mkt-header) #password_requirements > div.text-success::after,
body:has(.bb-auth) #password_requirements > div.text-success::after{opacity:1}
body:has(header.mkt-header) .modal-body .row,
body:has(.bb-auth) .modal-body .row{display:block;margin-left:0!important;margin-right:0!important}
body:has(header.mkt-header) .modal-body .col-md-12,
body:has(header.mkt-header) .modal-body .col-md-6,
body:has(header.mkt-header) .modal-body .col-12,
body:has(.bb-auth) .modal-body .col-md-12,
body:has(.bb-auth) .modal-body .col-md-6,
body:has(.bb-auth) .modal-body .col-12{width:100%;padding:0!important}
body:has(header.mkt-header) .modal-body .pl-3,
body:has(header.mkt-header) .modal-body .pr-3,
body:has(header.mkt-header) .modal-body .pr-2,
body:has(.bb-auth) .modal-body .pl-3,
body:has(.bb-auth) .modal-body .pr-3,
body:has(.bb-auth) .modal-body .pr-2{padding-left:0!important;padding-right:0!important}
body:has(header.mkt-header) .modal-body .mb-2,
body:has(.bb-auth) .modal-body .mb-2{margin-bottom:8px}
body:has(header.mkt-header) .modal-body .mb-25,
body:has(.bb-auth) .modal-body .mb-25{margin-bottom:14px!important}
body:has(header.mkt-header) .modal-body .mb-20,
body:has(.bb-auth) .modal-body .mb-20{margin-bottom:18px!important}
body:has(header.mkt-header) .modal-body .ml-0,
body:has(.bb-auth) .modal-body .ml-0{margin-left:0}
body:has(header.mkt-header) .modal-body .pt-2,
body:has(.bb-auth) .modal-body .pt-2{padding-top:8px}
body:has(header.mkt-header) .modal-body .text-primary,
body:has(.bb-auth) .modal-body .text-primary{color:var(--bb-primary)}
body:has(header.mkt-header) .modal-body .btn-block,
body:has(.bb-auth) .modal-body .btn-block{display:block;width:100%}
body:has(header.mkt-header) .modal-body .form-label,
body:has(.bb-auth) .modal-body .form-label{display:block}
@media (max-width:520px){
  body:has(header.mkt-header) .modal-header{padding:24px 22px 4px}
  body:has(header.mkt-header) .modal-body{padding:18px 22px 26px}
  body:has(header.mkt-header) #register-form-modal .modal-body{padding:18px 22px 26px}
}
@media (max-width:520px){
  body:has(.bb-auth) .modal-header{padding:24px 22px 4px}
  body:has(.bb-auth) .modal-body{padding:18px 22px 26px}
  body:has(.bb-auth) #register-form-modal .modal-body{padding:18px 22px 26px}
}

/* ---------------- Bootstrap layout utilities the auth forms rely on ----------------
   Only what default_modal.login / auth.register_form use. Without .d-none the
   sign-up form's honeypot inputs become visible boxes. Same scopes as the modals. */
body:has(header.mkt-header) .d-none,
body:has(.bb-auth) .d-none{display:none!important}
body:has(header.mkt-header) .d-flex,
body:has(.bb-auth) .d-flex{display:flex}
body:has(header.mkt-header) .flex-column,
body:has(.bb-auth) .flex-column{flex-direction:column}
body:has(header.mkt-header) .align-items-center,
body:has(.bb-auth) .align-items-center{align-items:center}
body:has(header.mkt-header) .align-items-start,
body:has(.bb-auth) .align-items-start{align-items:flex-start}
body:has(header.mkt-header) .align-self-start,
body:has(.bb-auth) .align-self-start{align-self:flex-start}
body:has(header.mkt-header) .justify-content-center,
body:has(.bb-auth) .justify-content-center{justify-content:center}
body:has(header.mkt-header) .justify-content-between,
body:has(.bb-auth) .justify-content-between{justify-content:space-between}
body:has(header.mkt-header) .w-100,
body:has(.bb-auth) .w-100{width:100%}
body:has(header.mkt-header) .text-center,
body:has(.bb-auth) .text-center{text-align:center}
body:has(header.mkt-header) .text-left,
body:has(.bb-auth) .text-left{text-align:left}
body:has(header.mkt-header) .position-relative,
body:has(.bb-auth) .position-relative{position:relative}
body:has(header.mkt-header) .mb-20,
body:has(.bb-auth) .mb-20{margin-bottom:18px}
body:has(header.mkt-header) .mb-3,
body:has(.bb-auth) .mb-3{margin-bottom:12px}
body:has(header.mkt-header) .mt-2,
body:has(.bb-auth) .mt-2{margin-top:8px}
body:has(header.mkt-header) .mt-3,
body:has(.bb-auth) .mt-3{margin-top:12px}
body:has(header.mkt-header) .mt-4,
body:has(.bb-auth) .mt-4{margin-top:16px}
body:has(header.mkt-header) .pt-3,
body:has(.bb-auth) .pt-3{padding-top:12px}
body:has(header.mkt-header) .ml-1,
body:has(.bb-auth) .ml-1{margin-left:4px}
body:has(header.mkt-header) .ml-2,
body:has(.bb-auth) .ml-2{margin-left:8px}
body:has(header.mkt-header) .col-gap-4,
body:has(.bb-auth) .col-gap-4{column-gap:16px}
body:has(header.mkt-header) .row-gap-3,
body:has(.bb-auth) .row-gap-3{row-gap:12px}
body:has(header.mkt-header) .border-0,
body:has(.bb-auth) .border-0{border:0}
@media (min-width:768px){
  body:has(header.mkt-header) .flex-md-row,
  body:has(.bb-auth) .flex-md-row{flex-direction:row}
  body:has(header.mkt-header) .w-md-50,
  body:has(.bb-auth) .w-md-50{width:50%}
}
