/* BlacTec sign-in / sign-up pages: light page, centred white card, animated line-art behind.
   Loaded after the templates' own <style>, hence the !important overrides. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

html body {
  background: #f8f8f6 !important;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
  color: #1c1c28 !important;
  min-height: 100vh !important;
  padding: 40px 20px !important;
}

/* animated artwork (an <img> of the SVG, so its animations run on their own) */
img.bt-art { position: fixed !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; object-fit: cover; object-position: center bottom; z-index: 0; pointer-events: none; user-select: none; }
.login-box, .register-box, body > .card { position: relative; z-index: 1; }

/* logo */
.login-logo { margin-bottom: 20px !important; }
.login-logo img { height: 46px !important; max-height: 46px !important; margin: 0 auto !important; }

/* the card */
.login-box { max-width: 540px !important; }
.register-box { max-width: 1180px !important; }
html body .card { background: #fff !important; border: 0 !important; border-radius: 14px !important; box-shadow: 0 14px 44px rgba(28,28,40,.07), 0 1px 2px rgba(28,28,40,.05) !important; }

/* card title: restyles the pages' existing .card::before heading ("Welcome back" / "Create your account") */
html body .login-box .card::before, html body .register-box .card::before { display: block !important; text-align: center !important; font-size: 27px !important; font-weight: 700 !important; line-height: 1.25 !important; letter-spacing: -.3px !important; color: #0e0f13 !important; margin: 0 !important; padding: 34px 40px 0 !important; border: 0 !important; background: none !important; }
html body .register-box .card::before { padding: 36px 44px 0 !important; }
.login-box .card-body { padding: 10px 40px 40px !important; }
.register-box .card-body { padding: 22px 44px 44px !important; }
/* subtitle between two rules (login) */
.login-box form::before { content: "Sign in to your account to continue."; display: block; text-align: center; font-size: 14px; color: #6b6b7b; margin: 0 0 22px; background: linear-gradient(#e4e4e0,#e4e4e0) left center / 17% 1px no-repeat, linear-gradient(#e4e4e0,#e4e4e0) right center / 17% 1px no-repeat; }

/* fields */
.form-group { margin-bottom: 16px !important; }
.form-label { font-size: 13px !important; font-weight: 600 !important; color: #2a2a38 !important; margin-bottom: 6px !important; }
html body .form-control { height: 50px !important; padding: 0 14px !important; border: 1px solid #d8d8d3 !important; border-radius: 8px !important; background: #fff !important; font-family: inherit !important; font-size: 15px !important; box-shadow: none !important; transition: border-color .15s, box-shadow .15s; }
html body select.form-control { padding-right: 34px !important; }
html body .form-control:focus { outline: 0 !important; border-color: #1d4ed8 !important; box-shadow: 0 0 0 3px rgba(29,78,216,.12) !important; }
.form-control::placeholder { color: #9a9aa6 !important; }

/* password with eye */
.bt-pw { position: relative; }
.bt-pw .form-control { padding-right: 46px !important; }
.bt-eye { position: absolute; right: 4px; top: 4px; width: 42px; height: 42px; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; cursor: pointer; color: #6b6b7b; }
.bt-eye:hover { background: #f1f1ee; color: #0e0f13; }
.bt-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* remember / forgot row */
.remember-row { margin: 4px 0 18px !important; font-size: 14px !important; }
.remember-row a { color: #3a3a4a !important; font-weight: 500 !important; }
.remember-row a:hover { color: #1d4ed8 !important; }

/* primary button */
html body .btn.btn-primary, html body .card .btn { height: 52px !important; border: 0 !important; border-radius: 10px !important; background: #0e0f13 !important; color: #fff !important; font-family: inherit !important; font-size: 16px !important; font-weight: 600 !important; letter-spacing: 0 !important; box-shadow: none !important; transition: background .15s, transform .1s; }
html body .btn.btn-primary:hover, html body .card .btn:hover { background: #2a2b33 !important; }
html body .btn.btn-primary:active, html body .card .btn:active { transform: translateY(1px); }

/* links under the card */
.register-link, .login-link { margin-top: 20px !important; font-size: 15px !important; color: #3a3a4a !important; text-align: center !important; }
.register-link a, .login-link a { color: #0e0f13 !important; font-weight: 700 !important; text-decoration: none !important; }
.register-link a:hover, .login-link a:hover { text-decoration: underline !important; }

/* ---------- register: two columns ---------- */
.bt-cols { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 56px; align-items: start; }
.bt-col + .bt-col { border-left: 1px solid #e8e8e4; padding-left: 56px; }
.bt-h { font-size: 17px; font-weight: 700; color: #0e0f13; margin: 0 0 16px; }
.bt-col .bt-h:not(:first-child) { margin-top: 30px; }
.bt-hint { font-size: 12.5px; color: #7a7a88; margin: -8px 0 14px; }
.bt-two { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 14px; }
.bt-two > .form-group { margin-bottom: 16px !important; }
.bt-two .form-row, .bt-col .form-row { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; gap: 0 14px !important; margin: 0 !important; }
.bt-hide { display: none !important; }
.bt-seg { display: flex; gap: 10px; margin: 0 0 6px; }
.bt-seg label { flex: 1; display: flex !important; align-items: center; justify-content: center; gap: 8px; height: 46px; border: 1px solid #d8d8d3; border-radius: 8px; cursor: pointer; font-weight: 500 !important; background: #fff; }
.bt-seg label:has(input:checked) { border-color: #0e0f13; box-shadow: inset 0 0 0 1px #0e0f13; }
.bt-seg input { accent-color: #0e0f13; }

.bt-gen { display: inline-block; height: 34px; padding: 0 14px; border: 0; border-radius: 7px; background: #efefec; color: #1c1c28; font: 600 12.5px 'DM Sans', sans-serif; cursor: pointer; }
.bt-gen:hover { background: #e4e4e0; }
.bt-strength { display: flex; flex-direction: column; justify-content: center; gap: 7px; min-height: 34px; }
.bt-meter { height: 7px; border-radius: 99px; background: #e9e9e5; overflow: hidden; }
.bt-meter i { display: block; height: 100%; width: 0; background: #ef4444; border-radius: 99px; transition: width .25s, background .25s; }
.bt-meter-label { font-size: 12.5px; color: #7a7a88; }
.bt-secrow { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 14px; align-items: center; margin: -2px 0 22px; }

.bt-soft { background: #f3f3f1; border-radius: 10px; padding: 16px 18px; margin: 0 0 20px; }
.bt-soft-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bt-soft strong { font-size: 15px; color: #0e0f13; }
.bt-soft p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.55; color: #7a7a88; }
.bt-switch { position: relative; display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; cursor: pointer; font-size: 13px !important; font-weight: 600 !important; color: #3a3a4a; }
.bt-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.bt-switch .bt-track { width: 46px; height: 26px; border-radius: 99px; background: #cfcfca; position: relative; transition: background .2s; }
.bt-switch .bt-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s; }
.bt-switch input:checked + .bt-track { background: #1d4ed8; }
.bt-switch input:checked + .bt-track::after { transform: translateX(20px); }
.bt-switch input:focus-visible + .bt-track { outline: 2px solid #1d4ed8; outline-offset: 2px; }

.bt-terms { margin: 0 0 18px; font-size: 13.5px; }
.bt-terms label { align-items: flex-start; }
.bt-terms a { color: #1d4ed8 !important; }
.bt-col .btn.btn-primary { width: 100% !important; }

/* forgot / reset password pages (their own simple markup) */
body > .card { width: 100% !important; max-width: 480px !important; padding: 36px 40px !important; margin: 0 auto !important; }
body > .card::before { background-position: center !important; margin-bottom: 20px !important; }
body > .card h1 { font-size: 26px !important; font-weight: 700 !important; text-align: center !important; margin: 0 0 8px !important; color: #0e0f13 !important; }
body > .card .sub { text-align: center !important; color: #6b6b7b !important; font-size: 14px !important; margin: 0 0 22px !important; }
body > .card .fl { display: block; font-size: 13px !important; font-weight: 600 !important; margin-bottom: 6px !important; color: #2a2a38 !important; }
body > .card .fc { width: 100% !important; height: 50px !important; padding: 0 14px !important; border: 1px solid #d8d8d3 !important; border-radius: 8px !important; font: 15px 'DM Sans', sans-serif !important; box-shadow: none !important; }
body > .card .fc:focus { outline: 0 !important; border-color: #1d4ed8 !important; box-shadow: 0 0 0 3px rgba(29,78,216,.12) !important; }
body > .card .fg { margin-bottom: 16px !important; }
body > .card a { color: #0e0f13 !important; font-weight: 600 !important; }

/* phone prefix select: the page sets its width inline, so the script widens it; keep its padding tight */
html body #phone_prefix { padding: 0 24px 0 10px !important; }

/* register is a wide card: the corner artwork only fits on very wide screens */
body:has(.register-box) img.bt-art { opacity: .55; }
@media (max-width: 1699px) { body:has(.register-box) img.bt-art { display: none !important; } }

/* narrower screens */
@media (max-width: 960px) {
  .register-box { max-width: 560px !important; }
  .bt-cols { grid-template-columns: 1fr; }
  .bt-col + .bt-col { border-left: 0; padding-left: 0; margin-top: 30px; }
  img.bt-art { opacity: .4; }
}
@media (max-width: 640px) {
  html body { padding: 24px 14px !important; }
  img.bt-art { display: none !important; }
  .login-box .card-body, .register-box .card-body { padding: 10px 22px 30px !important; }
  html body .login-box .card::before, html body .register-box .card::before { padding: 28px 22px 0 !important; font-size: 24px !important; }
  .bt-two, .bt-secrow, .bt-col .form-row { grid-template-columns: 1fr !important; }
  body > .card { padding: 28px 22px !important; }
}

/* section headings use the page font */
.bt-h { font-family: 'DM Sans', system-ui, sans-serif !important; }

/* two-factor + verify-email: stock markup is .card > h2 + p.sub + .alert + form (label, input[type=text], .btn) */
body > .card::before { content: ""; display: block; height: 44px; margin-bottom: 20px; background: url('/branding/bt-auth-logo.svg') center / contain no-repeat !important; }
body > .card h2 { font-size: 26px !important; font-weight: 700 !important; letter-spacing: -.3px !important; text-align: center !important; margin: 0 0 8px !important; color: #0e0f13 !important; }
body > .card label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #2a2a38; }
body > .card input[type="text"] { width: 100% !important; height: 58px !important; padding: 0 14px !important; border: 1px solid #d8d8d3 !important; border-radius: 8px !important; background: #fff !important; color: #0e0f13 !important; font: 600 24px 'DM Sans', sans-serif !important; letter-spacing: 8px !important; text-align: center !important; box-shadow: none !important; }
body > .card input[type="text"]:focus { outline: 0 !important; border-color: #1d4ed8 !important; box-shadow: 0 0 0 3px rgba(29,78,216,.12) !important; }
body > .card .alert { background: #fdecec !important; border: 1px solid #f6c9c9 !important; color: #9b2c2c !important; padding: 11px 14px !important; border-radius: 10px !important; font-size: 14px !important; margin-bottom: 16px !important; }
body > .card .bt-ok { background: #e8f7ee; border: 1px solid #b7e4c7; color: #17613a; padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
body > .card .bt-text { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: #2a2a38; text-align: center; overflow-wrap: anywhere; }
body > .card .bt-muted { margin: 0 0 20px; font-size: 13px; line-height: 1.5; color: #6b6b7b; text-align: center; }
body > .card .bt-ghost { display: flex; align-items: center; justify-content: center; height: 48px; margin-top: 10px; border: 1px solid #d8d8d3; border-radius: 10px; background: #fff; color: #0e0f13 !important; font-size: 15px !important; font-weight: 600 !important; text-decoration: none; }
body > .card .bt-ghost:hover { background: #f4f4f1; }
body > .card form[action*="logout"] button { color: #6b6b7b !important; font: 500 13.5px 'DM Sans', sans-serif !important; }
body > .card form[action*="logout"] button:hover { color: #0e0f13 !important; text-decoration: underline; }
body > .card .bt-signout { text-align: center; margin: 14px 0 0; }
body > .card h2 { font-family: 'DM Sans', system-ui, sans-serif !important; }
body > .card .btn { display: flex !important; align-items: center; justify-content: center; width: 100% !important; }
