/* Boardwalk Account - sign-in, registration and recovery pages.
   Each page sets the palette on :root: --main, --strong, --neighbour, --ink, --wash,
   --btn-end, --tag-ink (LoginTheme), plus --text, --text-2, --line. */

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #ffffff; color: var(--text); font-family: 'Google Sans', 'Segoe UI', Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; }

.bw { min-height: 100vh; display: flex; }

/* ---- Form column ---- */
.bw-main { width: 560px; flex: none; padding: 32px 72px 26px; display: flex; flex-direction: column; }
.bw-head { display: flex; align-items: center; gap: 10px; }
.bw-head img { height: 34px; width: auto; }
.bw-head span { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.bw-body { flex: 1; width: 100%; max-width: 416px; padding: 28px 0; display: flex; flex-direction: column; justify-content: center; animation: bwRise .55s cubic-bezier(.2, .8, .2, 1); }

.bw-tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 18px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--wash); color: var(--tag-ink); font-size: 13px; }
.bw-tag-logo { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #ffffff; display: grid; place-items: center; overflow: hidden; font-size: 13px; font-weight: 700; color: var(--strong); }
.bw-tag-logo img { width: 22px; height: 22px; object-fit: contain; }
.bw-tag-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-tag b { font-weight: 700; }

.bw-body h1 { margin: 0 0 6px; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.bw-sub { margin: 0 0 22px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.bw-sub .bw-sm { display: none; }

.bw-error { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #fdecea; color: #a12622; font-size: 13.5px; line-height: 1.45; animation: bwShake .4s cubic-bezier(.36, .07, .19, .97); }
.bw-error svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.bw-error .validation-summary-errors ul { margin: 0; padding: 0; list-style: none; }
.bw-error .validation-summary-errors li + li { margin-top: 4px; }

.bw-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.bw-field label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.bw-input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff; font: inherit; font-size: 15px; color: var(--text); transition: border-color .15s ease, box-shadow .15s ease; }
.bw-input::placeholder { color: #6b7280; }
.bw-input:focus { outline: none; border-color: var(--strong); box-shadow: 0 0 0 4px color-mix(in srgb, var(--strong) 16%, transparent); }
.bw-input.is-invalid { border-color: #d93025; box-shadow: 0 0 0 4px rgba(217, 48, 37, .12); }
.bw-pw { position: relative; }
.bw-input-pw { padding-right: 48px; }
.bw-input-pw::-ms-reveal { display: none; }
.bw-eye { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.bw-eye:hover { background: #f1f4f8; color: var(--text); }
.bw-eye:focus-visible { outline: 2px solid var(--strong); outline-offset: 1px; }
.bw-eye svg { width: 20px; height: 20px; }
.bw-eye .bw-eye-off, .bw-eye[aria-pressed="true"] .bw-eye-on { display: none; }
.bw-eye[aria-pressed="true"] .bw-eye-off { display: block; }

.bw-row { display: flex; justify-content: flex-end; margin: -2px 0 18px; font-size: 13.5px; }
.bw-link { color: var(--ink); font-weight: 500; text-decoration: none; border-radius: 4px; }
.bw-link:hover { text-decoration: underline; }
.bw-link:focus-visible, .bw-foot a:focus-visible { outline: 2px solid var(--strong); outline-offset: 2px; }

/* The primary button - Product Management's (Site.css --pm-primary-*, 2026-10-30): one solid
   colour with a darker edge, 10px corners, 600 weight, a soft shadow with a light inner edge,
   and a darker fill with a wider glow on hover. Its colour is the theme's --strong (Accounts'
   purple, or the destination app's shade that keeps white text readable); its size is its own. */
.bw-btn { width: 100%; height: 48px; border: 1px solid #5f0f6e; border: 1px solid color-mix(in srgb, var(--strong) 82%, #000); border-radius: 10px; background: var(--strong); color: #ffffff; font: inherit; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 23, 42, .25), inset 0 1px 0 rgba(255, 255, 255, .2); transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.bw-btn:hover { background: color-mix(in srgb, var(--strong) 82%, #000); box-shadow: 0 6px 16px color-mix(in srgb, var(--strong) 34%, transparent), inset 0 1px 0 rgba(255, 255, 255, .2); }
.bw-btn:active { transform: scale(.99); }
.bw-btn:focus-visible { outline: 2px solid var(--strong); outline-offset: 3px; }
.bw-btn svg { width: 18px; height: 18px; flex: none; }
.bw-btn .bw-sm { display: none; }
.bw-btn-label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-btn[disabled] { cursor: progress; transform: none; }
.bw-btn[disabled] svg { display: none; }
.bw-btn[disabled]::before { content: ""; flex: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #ffffff; border-radius: 50%; animation: bwSpin .7s linear infinite; }

.bw-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #6b7280; font-size: 12.5px; }
.bw-or::before, .bw-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.bw-social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: center; }
.bw-google { min-width: 0; height: 44px; display: flex; align-items: center; justify-content: center; }
.bw-fb { height: 40px; min-width: 0; padding: 0 12px; border: 1px solid #dadce0; border-radius: 4px; background: #ffffff; color: #3c4043; font: inherit; font-size: 14px; font-weight: 500; letter-spacing: .25px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.bw-fb:hover { background: #f8faff; border-color: #d2e3fc; }
.bw-fb:focus-visible { outline: 2px solid var(--strong); outline-offset: 2px; }
.bw-fb svg { width: 18px; height: 18px; flex: none; }
.bw-fb span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bw-alt { margin: 20px 0 0; font-size: 14px; color: var(--text-2); }
.bw-alt .bw-link { font-weight: 600; }

.bw-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; color: #6b7280; }
.bw-foot .helper-links { display: flex; gap: 16px; width: auto; margin: 0; padding: 0; align-self: auto; justify-content: flex-end; }
.bw-foot .helper-links > a { margin: 0; color: var(--text-2); font-family: inherit; text-decoration: none; border-radius: 3px; }
.bw-foot .helper-links > a:hover { color: var(--text); text-decoration: underline; }

/* ---- Destination panel ---- */
.bw-side { flex: 1; min-width: 0; padding: 14px 14px 14px 0; display: flex; }
.bw-panel { flex: 1; position: relative; overflow: hidden; border-radius: 28px; padding: 44px 56px 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; color: #ffffff;
    background: linear-gradient(90deg, rgba(0, 0, 0, .26) 0%, rgba(0, 0, 0, .18) 65%, rgba(0, 0, 0, .04) 100%), linear-gradient(135deg, var(--strong) 0%, var(--strong) 55%, var(--main) 90%, var(--neighbour) 100%); }
.bw-panel > * { position: relative; }
.bw-panel > .bw-dots { position: absolute; right: -40px; top: -40px; width: 360px; height: 300px; background-image: radial-gradient(rgba(255, 255, 255, .22) 1.6px, transparent 1.8px); background-size: 22px 22px; opacity: .9; }
.bw-panel > .bw-ring { position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; border: 56px solid rgba(255, 255, 255, .08); animation: bwDrift 14s ease-in-out infinite alternate; }

.bw-band-brand, .bw-band-line { display: none; }
.bw-dest { display: flex; flex-direction: column; gap: 14px; }
.bw-kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.bw-dest-row { display: flex; align-items: center; gap: 16px; min-width: 0; }
.bw-tile { width: 64px; height: 64px; flex: none; border-radius: 18px; background: #ffffff; display: grid; place-items: center; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .35); font-size: 28px; font-weight: 700; color: var(--strong); overflow: hidden; }
.bw-tile img { width: 44px; height: 44px; object-fit: contain; }
.bw-dest-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bw-dest-text b { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.bw-dest-text span { font-size: 14px; color: rgba(255, 255, 255, .9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bw-pitch { max-width: 560px; }
.bw-pitch h2 { margin: 0 0 12px; font-size: 42px; line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
.bw-pitch p { margin: 0 0 24px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .94); }
.bw-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bw-perks li { display: flex; align-items: center; gap: 12px; font-size: 15px; animation: bwRise .6s cubic-bezier(.2, .8, .2, 1) backwards; }
.bw-perks li:nth-child(1) { animation-delay: .15s; }
.bw-perks li:nth-child(2) { animation-delay: .25s; }
.bw-perks li:nth-child(3) { animation-delay: .35s; }
.bw-check { width: 28px; height: 28px; flex: none; border-radius: 9px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.bw-check svg { width: 16px; height: 16px; }

.bw-strip-apps { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, .14); font-size: 13.5px; line-height: 1.35; }
.bw-strip-logos { display: flex; gap: 6px; }
.bw-strip-logos span { width: 32px; height: 32px; border-radius: 10px; background: #ffffff; display: grid; place-items: center; }
.bw-strip-logos img { width: 22px; height: 22px; object-fit: contain; }

@keyframes bwRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes bwDrift { from { transform: translate(0, 0); } to { transform: translate(-24px, 18px); } }
@keyframes bwShake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-3px); } 40%, 60% { transform: translateX(3px); } }
@keyframes bwSpin { to { transform: rotate(360deg); } }

/* Narrow desktops and tablets in landscape */
@media (max-width: 1100px) and (min-width: 861px) {
    .bw-main { width: 480px; padding: 28px 48px 24px; }
    .bw-panel { padding: 36px 40px 32px;
        background: linear-gradient(90deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .22) 70%, rgba(0, 0, 0, .14) 100%), linear-gradient(135deg, var(--strong) 0%, var(--strong) 72%, var(--main) 95%, var(--neighbour) 100%); }
    .bw-pitch h2 { font-size: 34px; }
    .bw-social { grid-template-columns: minmax(0, 1fr); }
}

/* Short desktop screens (1280x720 and the like) */
@media (max-height: 760px) and (min-width: 861px) {
    .bw-main { padding-top: 24px; padding-bottom: 20px; }
    .bw-body { padding: 18px 0; }
    .bw-tag { margin-bottom: 14px; }
    .bw-sub { margin-bottom: 18px; }
    .bw-field { margin-bottom: 12px; }
    .bw-row { margin-bottom: 14px; }
    .bw-or { margin: 14px 0; }
    .bw-alt { margin-top: 16px; }
    .bw-panel { padding-top: 36px; padding-bottom: 32px; }
}

/* Phones: the coloured band on top, the form below */
@media (max-width: 860px) {
    .bw { flex-direction: column; }
    .bw-side { order: -1; flex: none; padding: 0; }
    .bw-panel { border-radius: 0 0 28px 28px; padding: 18px 22px 24px; gap: 18px; justify-content: flex-start;
        background: linear-gradient(90deg, rgba(0, 0, 0, .24) 0%, rgba(0, 0, 0, .2) 70%, rgba(0, 0, 0, .12) 100%), linear-gradient(135deg, var(--strong) 0%, var(--strong) 70%, var(--main) 100%); }
    .bw-panel > .bw-dots { right: -30px; top: -30px; width: 200px; height: 160px; background-image: radial-gradient(rgba(255, 255, 255, .22) 1.4px, transparent 1.6px); background-size: 18px 18px; }
    .bw-panel > .bw-ring, .bw-pitch, .bw-strip { display: none; }
    .bw-band-brand { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; }
    .bw-band-brand span { width: 30px; height: 30px; border-radius: 50%; background: #ffffff; display: grid; place-items: center; }
    .bw-band-brand img { width: 22px; height: 18px; object-fit: contain; }
    .bw-dest { gap: 10px; }
    .bw-kicker { font-size: 11px; }
    .bw-dest-row { gap: 12px; }
    .bw-tile { width: 44px; height: 44px; border-radius: 13px; font-size: 20px; box-shadow: none; }
    .bw-tile img { width: 30px; height: 30px; }
    .bw-dest-text { gap: 1px; }
    .bw-dest-text b { font-size: 19px; }
    .bw-dest-text span { font-size: 12px; }
    .bw-band-line { display: block; margin: 4px 0 0; font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .96); }

    .bw-main { width: auto; flex: 1; padding: 22px 22px 16px; }
    .bw-head, .bw-tag, .bw-foot > span { display: none; }
    .bw-body { flex: none; max-width: 416px; margin: 0 auto; padding: 0; justify-content: flex-start; }
    .bw-body h1 { margin-bottom: 4px; font-size: 26px; }
    .bw-sub { margin-bottom: 18px; font-size: 14px; line-height: 1.45; }
    .bw-sub .bw-lg, .bw-btn .bw-lg { display: none; }
    .bw-sub .bw-sm, .bw-btn .bw-sm { display: inline; }
    .bw-field { gap: 6px; margin-bottom: 12px; }
    .bw-eye { right: 4px; top: 2px; width: 44px; height: 44px; border-radius: 10px; }
    .bw-row { margin: 0 0 14px; }
    .bw-row .bw-link { display: inline-flex; align-items: center; min-height: 44px; }
    .bw-btn { height: 50px; }
    .bw-or { margin: 16px 0; }
    .bw-alt { margin-top: 18px; text-align: center; }
    .bw-foot { justify-content: center; margin-top: auto; padding-top: 22px; }
    .bw-foot .helper-links { gap: 18px; }
    .bw-foot .helper-links > a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Too narrow for two sign-in buttons side by side (Google's needs 200px) */
@media (max-width: 459px) {
    .bw-social { grid-template-columns: minmax(0, 1fr); }
    .bw-fb { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .bw-body, .bw-perks li, .bw-error, .bw-panel > .bw-ring { animation: none !important; }
    .bw-btn, .bw-input { transition: none; }
    .bw-btn[disabled]::before { animation-duration: 2s; }
}

/* ===================================================================================
   Registration and recovery pages (Views/Shared/_AccountLayout.cshtml)
   =================================================================================== */

.bw-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The destination panel stays in view while a long form scrolls */
@media (min-width: 861px) {
    .bw-side { position: sticky; top: 0; height: 100vh; align-self: flex-start; }
}
.bw-account .bw-band-brand { display: none !important; }

/* Two- and three-up fields: side by side on wide screens, stacked on narrow ones */
.bw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.bw-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) {
    .bw-grid, .bw-grid-3 { grid-template-columns: minmax(0, 1fr); }
}

.bw-select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.bw-input:disabled { background-color: #f6f7fb; color: #6b7280; cursor: not-allowed; }
input[type=date].bw-input { padding-right: 10px; }
.bw-hint { margin: -4px 0 16px; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }

a.bw-btn { text-decoration: none; }
.bw-btn.disabled { opacity: .55; pointer-events: none; box-shadow: none; }
.loading .bw-btn[type=submit], .loading #submit.bw-btn { pointer-events: none; }
.loading .bw-btn[type=submit] svg, .loading #submit.bw-btn svg { display: none; }
.loading .bw-btn[type=submit]::before, .loading #submit.bw-btn::before { content: ""; flex: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #ffffff; border-radius: 50%; animation: bwSpin .7s linear infinite; }
.bw-alt + .bw-alt { margin-top: 10px; }

/* Account type (Individual, Group, Company) */
.bw-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; }
.bw-type { min-height: 72px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff; color: var(--text-2); font: inherit; font-size: 13.5px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.bw-type svg { width: 22px; height: 22px; }
.bw-type:hover { border-color: color-mix(in srgb, var(--strong) 45%, var(--line)); color: var(--text); }
.bw-type.active { border-color: var(--strong); background: var(--wash); color: var(--tag-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--strong) 14%, transparent); }
.bw-type:focus-visible { outline: 2px solid var(--strong); outline-offset: 2px; }
.bw-form-slot { min-height: 160px; transition: opacity .2s ease; }
#register-form.loading .bw-form-slot { opacity: .45; pointer-events: none; }

/* Where to send the code */
.bw-options { display: grid; gap: 10px; min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.bw-option { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.bw-option input { position: absolute; opacity: 0; pointer-events: none; }
.bw-option-icon { width: 38px; height: 38px; flex: none; border-radius: 10px; background: #f1f4f8; color: var(--text-2); display: grid; place-items: center; }
.bw-option-icon svg { width: 20px; height: 20px; }
.bw-option-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bw-option-text b { font-size: 14.5px; font-weight: 600; color: var(--text); }
.bw-option-text span { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.bw-radio { width: 20px; height: 20px; flex: none; margin-left: auto; border: 2px solid #b7bfcc; border-radius: 50%; background: #ffffff; }
.bw-option:hover { border-color: color-mix(in srgb, var(--strong) 45%, var(--line)); }
.bw-option:has(input:checked) { border-color: var(--strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--strong) 14%, transparent); }
.bw-option:has(input:checked) .bw-option-icon { background: var(--wash); color: var(--strong); }
.bw-option:has(input:checked) .bw-radio { border-color: var(--strong); background: var(--strong); box-shadow: inset 0 0 0 4px #ffffff; }
.bw-option:has(input:focus-visible) { outline: 2px solid var(--strong); outline-offset: 2px; }

/* The account that was found */
.bw-person { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; background: #f6f7fb; }
.bw-person img { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; background: #ffffff; }
.bw-person-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text-2); }
.bw-person-text b { font-size: 15px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }

/* Codes */
.bw-code { height: 60px; text-align: center; font-size: 26px; font-weight: 600; letter-spacing: .5em; padding-left: calc(14px + .5em); font-variant-numeric: tabular-nums; }
.bw-sent { margin: -8px 0 20px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.bw-sent b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.bw-otp { display: flex; gap: 12px; margin: 0 0 22px; }
.bw-otp .bw-input { width: 58px; height: 62px; padding: 0; text-align: center; font-size: 24px; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.bw-otp .bw-input::-webkit-outer-spin-button, .bw-otp .bw-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bw-otp .bw-input:disabled { background: #ffffff; color: var(--text); cursor: default; }
#submit.hide-button { display: none; }

/* Outcome pages */
.bw-outcome-icon { width: 56px; height: 56px; margin: 0 0 18px; border-radius: 50%; background: var(--wash); color: var(--strong); display: grid; place-items: center; animation: bwPop .45s cubic-bezier(.2, .8, .2, 1) both; }
.bw-outcome-icon svg { width: 28px; height: 28px; }
.bw-outcome-icon.is-alert { background: #fdecea; color: #a12622; }
.bw-outcome-text { margin: 0 0 24px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.bw-ref { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin: 0 0 16px; padding: 8px 12px; border-radius: 10px; background: #f6f7fb; font-size: 14px; color: var(--text-2); }
.bw-ref b { color: var(--text); font-weight: 700; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
@keyframes bwPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* "How to take the photo" */
.bw-details { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff; }
.bw-details summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.bw-details summary::-webkit-details-marker { display: none; }
.bw-details summary:focus-visible { outline: 2px solid var(--strong); outline-offset: 2px; }
.bw-details summary svg { width: 18px; height: 18px; flex: none; color: var(--strong); }
.bw-details summary .bw-chev { margin-left: auto; color: var(--text-2); transition: transform .2s ease; }
.bw-details[open] summary .bw-chev { transform: rotate(180deg); }
.bw-details-body { padding: 0 14px 14px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.bw-details-body img { width: 100%; height: auto; margin: 0 0 12px; border-radius: 10px; }
.bw-details-body ul { margin: 0 0 10px; padding-left: 18px; }
.bw-details-body li + li { margin-top: 4px; }
.bw-details-body p { margin: 0; }

/* Photo of the person holding the ID (webcam) */
.bw-label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.upload-image { position: relative; margin: 0 0 8px; border-radius: 14px; }
.img-preview-wrapper { position: relative; width: 100%; padding-top: 75%; overflow: hidden; border: 1px dashed #b7bfcc; border-radius: 14px; background: #f6f7fb; }
.img-preview-wrapper > #imgPreview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 1; }
.upload-image.is-empty .img-preview-wrapper { border: 1px solid #d93025; box-shadow: 0 0 0 4px rgba(217, 48, 37, .12); }
.image-controls { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center; padding: 14px; pointer-events: none; }
.camera-button { pointer-events: auto; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: rgba(31, 39, 51, .86); color: #ffffff; font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.camera-button svg { width: 18px; height: 18px; }
.camera-button:hover { background: #1f2733; }
.camera-button:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--strong); }
#cameraContainer { position: absolute; inset: 0; z-index: 11; overflow: hidden; border-radius: 14px; background: #1f2733; opacity: 0; pointer-events: none; }
#cameraContainer.active { opacity: 1 !important; pointer-events: all !important; }
#cameraContainer #my_camera { width: 124px; height: 124px; transition: all ease .3s; }
#cameraContainer #my_camera video { object-fit: cover; }
#cameraContainer .overlay { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 6; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: #ffffff; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
#cameraContainer .overlay:focus-visible { outline: 2px solid var(--strong); outline-offset: 2px; }

/* Snackbar (custom.js showSnackBar) */
#snackbar { position: fixed; font-family: inherit; font-size: 14px; background: #1f2733; border-radius: 0 0 12px 12px; padding: 14px 16px; }

/* Panel: progress through account recovery */
.bw-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bw-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; animation: bwRise .6s cubic-bezier(.2, .8, .2, 1) backwards; }
.bw-steps li:nth-child(1) { animation-delay: .1s; }
.bw-steps li:nth-child(2) { animation-delay: .18s; }
.bw-steps li:nth-child(3) { animation-delay: .26s; }
.bw-steps li:nth-child(4) { animation-delay: .34s; }
.bw-step-chip { width: 28px; height: 28px; flex: none; border-radius: 9px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.bw-step-chip svg { width: 16px; height: 16px; }
.bw-steps li.is-current { font-weight: 700; }
.bw-steps li.is-current .bw-step-chip { background: #ffffff; color: var(--strong); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .45); }
.bw-steps li.is-later { color: rgba(255, 255, 255, .78); }
.bw-steps li.is-later .bw-step-chip { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }

@media (max-width: 860px) {
    .bw-types { gap: 8px; }
    .bw-type { min-height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
    .bw-steps li, .bw-outcome-icon { animation: none !important; }
    .bw-type, .bw-option, .bw-details summary .bw-chev { transition: none; }
}
