/* bFindable sign-in (Core\Pages\Login::Form). Layout follows Pixie-Dev's sign-in (approved 2026-11-05).
   Loaded on every page; the form arrives by AJAX outside .bsd-landing, so it carries its own tokens.
   Brand values match --bsd-l-* in Findable-Landing.css. */

/* Inter is self-hosted (also declared in Findable-CRM.css, which public pages do not load) */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 400; src: url('/assets/vendor/fonts/inter/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 500; src: url('/assets/vendor/fonts/inter/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 600; src: url('/assets/vendor/fonts/inter/inter-latin-600-normal.woff2') format('woff2'); }

:root {
    --bsd-auth-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --bsd-auth-navy: #002B64;
    --bsd-auth-navy-deep: #001A3F;
    --bsd-auth-red: #DB1A21;
    --bsd-auth-ink: #121212;
    --bsd-auth-text: #374151;
    --bsd-auth-muted: #555B66;          /* 6.6:1 on white */
    --bsd-auth-bg: #F4F6FA;
    --bsd-auth-surface: #FFFFFF;
    --bsd-auth-line: #E2E6EE;
    --bsd-auth-field: #8A94A6;          /* field edge 3.1:1 on white */
    --bsd-auth-field-hover: #6B7280;
    --bsd-auth-ring: 0 0 0 3px rgb(0 43 100 / 0.22);
    --bsd-auth-r: 8px;
    --bsd-auth-r-card: 16px;
    --bsd-auth-h: 44px;
    --bsd-auth-t: 150ms ease-out;
}

/* ---------- page and card ---------- */
.bsd-auth {
    display: grid;
    place-items: center;
    flex: 1 1 100%;                     /* #wrapper is a flex row */
    width: 100%;
    min-height: calc(100vh - 72px);     /* public top bar (--bsd-pnav-h) */
    padding: 48px 24px;
    background:
        radial-gradient(50% 60% at 80% 10%, rgb(26 59 142 / 0.08), transparent 70%),
        var(--bsd-auth-bg);
    font-family: var(--bsd-auth-font);
    color: var(--bsd-auth-text);
}

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

.bsd-auth h1,
.bsd-auth h2,
.bsd-auth p,
.bsd-auth ul { margin: 0; padding: 0; }

.bsd-auth__card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    width: 100%;
    max-width: 920px;
    overflow: hidden;
    background: var(--bsd-auth-surface);
    border: 1px solid var(--bsd-auth-line);
    border-radius: var(--bsd-auth-r-card);
    box-shadow: 0 24px 48px -16px rgb(0 26 63 / 0.18);
}

/* ---------- brand panel ---------- */
.bsd-auth__aside {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 48px 44px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--bsd-auth-navy-deep) 0%, var(--bsd-auth-navy) 100%);
    color: rgb(255 255 255 / 0.78);
}

.bsd-auth__aside::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(rgb(219 26 33 / 0.35), transparent 70%);
    pointer-events: none;
}

.bsd-auth__mark img {
    display: block;
    margin-bottom: 16px;
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.16);
}

.bsd-auth__aside h2 {
    color: #fff;
    font: 600 28px/1.2 var(--bsd-auth-font);
    letter-spacing: -0.02em;
}

.bsd-auth__aside p { font-size: 15px; line-height: 1.5; }

.bsd-auth__aside ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 32px;
    list-style: none;
}

.bsd-auth__aside li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.bsd-auth__aside li i { color: #FF8A8F; font-size: 16px; line-height: 1; }

/* ---------- form panel ---------- */
.bsd-auth__body { display: flex; flex-direction: column; gap: 6px; padding: 48px 44px; }

.bsd-auth__title {
    color: var(--bsd-auth-ink);
    font: 600 26px/1.2 var(--bsd-auth-font);
    letter-spacing: -0.02em;
}

.bsd-auth__sub { margin-bottom: 22px !important; color: var(--bsd-auth-muted); font-size: 15px; line-height: 1.5; }

.bsd-auth__error {
    margin: 0 0 16px !important;
    padding: 10px 12px !important;
    border-left: 3px solid #B42318;
    border-radius: 6px;
    background: #FEF3F2;
    color: #7A271A;
    font-size: 14px;
    line-height: 1.45;
}

.bsd-auth__form { display: flex; flex-direction: column; gap: 16px; }
.bsd-auth__field { display: flex; flex-direction: column; gap: 6px; }

.bsd-auth__field label {
    margin: 0;
    color: var(--bsd-auth-text);
    font-size: 14px;
    font-weight: 500;
}

.bsd-auth__input {
    width: 100%;
    height: var(--bsd-auth-h);
    padding: 0 14px;
    border: 1px solid var(--bsd-auth-field);
    border-radius: var(--bsd-auth-r);
    background: var(--bsd-auth-surface);
    color: var(--bsd-auth-ink);
    font: 400 15px var(--bsd-auth-font);
    box-shadow: none;
    transition: border-color var(--bsd-auth-t), box-shadow var(--bsd-auth-t);
}

.bsd-auth__input:focus { outline: none; border-color: var(--bsd-auth-navy); box-shadow: var(--bsd-auth-ring); }

@media (hover: hover) {
    .bsd-auth__input:hover:not(:focus) { border-color: var(--bsd-auth-field-hover); }
}

.bsd-auth__input-wrap { position: relative; }
.bsd-auth__input-wrap .bsd-auth__input { padding-right: 48px; }

.bsd-auth__toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    translate: 0 -50%;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--bsd-auth-field-hover);
    cursor: pointer;
    transition: color var(--bsd-auth-t), background-color var(--bsd-auth-t);
}

@media (hover: hover) {
    .bsd-auth__toggle:hover { color: var(--bsd-auth-ink); background: var(--bsd-auth-bg); }
}

.bsd-auth__toggle:focus-visible { outline: 2px solid var(--bsd-auth-navy); outline-offset: 0; }

/* ALTCHA widget: the vendor CSS reads these variables */
.bsd-auth altcha-widget {
    --altcha-border-radius: var(--bsd-auth-r);
    --altcha-color-border: var(--bsd-auth-line);
    --altcha-color-text: var(--bsd-auth-text);
    --altcha-max-width: 100%;
    font-family: var(--bsd-auth-font);
}

.bsd-auth__btn {
    width: 100%;
    height: var(--bsd-auth-h);
    margin-top: 8px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--bsd-auth-r);
    background: var(--bsd-auth-navy);
    color: #fff;
    font: 600 15px var(--bsd-auth-font);
    cursor: pointer;
    transition: background-color var(--bsd-auth-t), transform 120ms ease-out;
}

@media (hover: hover) {
    .bsd-auth__btn:hover { background: var(--bsd-auth-navy-deep); }
}

.bsd-auth__btn:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--bsd-auth-navy); }
.bsd-auth__btn:active { transform: scale(0.98); }

/* ---------- touch and small screens ---------- */
@media (pointer: coarse) {
    .bsd-auth__input { font-size: 16px; }   /* stops iOS zooming on focus */
}

@media (max-width: 767.98px) {
    .bsd-auth { padding: 24px 16px; align-items: start; }
    .bsd-auth__card { grid-template-columns: minmax(0, 1fr); }
    .bsd-auth__aside { padding: 28px; }
    .bsd-auth__aside ul { display: none; }
    .bsd-auth__body { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .bsd-auth__input,
    .bsd-auth__toggle,
    .bsd-auth__btn { transition: none; }
    .bsd-auth__btn:active { transform: none; }
}
