/* The Black Nazarene Hospital, Inc. — member sign-in (v2, 2026-09-24).
   Video-led story panel (14 s hospital montage over the hospital's own care-team photo),
   the four hospital values as colour-coded tiles, and a calm form. */
:root {
    color-scheme: light;
    --tb-royal: #4169e1;
    --tb-royal-dark: #3154c4;
    --tb-navy: #10265c;
    --tb-night: #0a1a45;
    --tb-red: #e11d2e;
    --tb-yellow: #ffd400;
    --tb-ink: #16243c;
    --tb-muted: #5b6982;
    --tb-line: #dce2ee;
    --tb-soft: #f3f5fc;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--tb-ink); background: #fff; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: var(--tb-royal-dark); text-underline-offset: 4px; }
button, a, input { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--tb-royal); outline-offset: 3px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
.tbnhi-skip { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 14px; border-radius: 8px; background: #fff; color: var(--tb-navy); transform: translateY(-150%); }
.tbnhi-skip:focus { transform: none; }

/* Four-colour hospital stripe */
.tbnhi-stripe { position: fixed; inset: 0 0 auto; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); height: 5px; }
.tbnhi-stripe .is-red { background: var(--tb-red); }
.tbnhi-stripe .is-white { background: #fff; box-shadow: inset 0 -1px 0 var(--tb-line); }
.tbnhi-stripe .is-blue { background: var(--tb-royal); }
.tbnhi-stripe .is-yellow { background: var(--tb-yellow); }

.tbnhi-entry { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(420px, 1fr); min-height: 100dvh; padding: 21px 16px 16px; gap: 16px; }

/* Story panel */
.tbnhi-story { position: relative; display: flex; flex-direction: column; gap: 30px; overflow: hidden; padding: clamp(28px, 4vw, 56px); border-radius: 24px; color: #fff; background: var(--tb-night); isolation: isolate; }
.tbnhi-story__media { position: absolute; inset: 0; z-index: -2; }
.tbnhi-story__photo, .tbnhi-story__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tbnhi-story__photo { object-position: 50% 30%; }
.tbnhi-story::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,26,69,.78) 0%, rgba(10,26,69,.28) 36%, rgba(10,26,69,.5) 60%, rgba(7,18,50,.95) 100%), linear-gradient(90deg, rgba(49,84,196,.5), transparent 70%); }
.tbnhi-hospital { display: flex; align-items: center; gap: 14px; }
.tbnhi-hospital img { width: 70px; height: 70px; object-fit: contain; padding: 3px; border-radius: 50%; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.tbnhi-hospital p { margin: 0; font-size: 12px; font-weight: 750; letter-spacing: .2em; color: #cfdcff; }
.tbnhi-hospital h1 { margin: 2px 0 0; font-size: 25px; letter-spacing: -.02em; color: #fff; }
.tbnhi-hospital span { display: block; margin-top: 3px; font-size: 12px; color: #cfdcff; }
.tbnhi-story__copy { margin-top: auto; max-width: 560px; }
.tbnhi-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 11px; font-weight: 750; letter-spacing: .18em; color: var(--tb-royal-dark); }
.tbnhi-eyebrow span { width: 26px; height: 3px; border-radius: 3px; background: var(--tb-red); }
.tbnhi-story .tbnhi-eyebrow { color: #ffe680; }
.tbnhi-story .tbnhi-eyebrow span { background: var(--tb-yellow); }
.tbnhi-story h2 { margin: 0; font-size: clamp(34px, 3.8vw, 56px); font-weight: 680; line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.tbnhi-story h2 em { font-style: normal; font-weight: 560; color: #9fb6ff; }
.tbnhi-story__description { max-width: 440px; margin: 20px 0 0; font-size: 15.5px; line-height: 1.75; color: #dbe4fb; }

/* Values as tiles */
.tbnhi-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tbnhi-values li { position: relative; overflow: hidden; aspect-ratio: 4 / 3.4; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(255,255,255,.08); }
.tbnhi-values img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tbnhi-values li::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(180deg, transparent, rgba(7,18,50,.92)); }
.tbnhi-values li:hover img { transform: scale(1.06); }
.tbnhi-values li > span { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 1; display: grid; gap: 1px; }
.tbnhi-values i { display: block; width: 26px; height: 4px; margin-bottom: 6px; border-radius: 4px; }
.tbnhi-values .is-red i { background: var(--tb-red); }
.tbnhi-values .is-white i { background: #fff; }
.tbnhi-values .is-blue i { background: #6f93ff; }
.tbnhi-values .is-yellow i { background: var(--tb-yellow); }
.tbnhi-values strong { color: #fff; font-size: 12.5px; line-height: 1.25; }
.tbnhi-values small { color: #c8d4f2; font-size: 11px; line-height: 1.3; }
.tbnhi-motion { position: absolute; top: clamp(28px, 4vw, 56px); right: clamp(28px, 4vw, 56px); display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(10,26,69,.35); color: #fff; font-size: 12px; cursor: pointer; backdrop-filter: blur(6px); }
.tbnhi-motion:hover { background: rgba(10,26,69,.6); }

/* Access panel */
.tbnhi-access { display: flex; flex-direction: column; padding: 14px clamp(24px, 4vw, 64px) 14px; }
.tbnhi-platform { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-height: 44px; }
.tbnhi-platform a { display: inline-flex; align-items: center; gap: 7px; color: var(--tb-muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.tbnhi-platform a:hover { color: var(--tb-navy); }
.tbnhi-platform > span { color: #97a3b8; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.tbnhi-form-wrap { width: 100%; max-width: 410px; margin: auto; padding: 24px 0; outline: 0; }
.tbnhi-form-mark { width: 56px; height: 56px; margin-bottom: 18px; padding: 2px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(16,38,92,.14); }
.tbnhi-form-heading h2 { margin: 0 0 8px; color: var(--tb-navy); font-size: clamp(30px, 3vw, 38px); font-weight: 720; letter-spacing: -.035em; }
.tbnhi-form-heading p:not(.tbnhi-eyebrow) { margin: 0 0 24px; color: var(--tb-muted); font-size: 15px; line-height: 1.6; }
.tbnhi-notice, .tbnhi-error { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.tbnhi-notice { background: #eef3ff; color: #213a86; }
.tbnhi-error { border: 1px solid #f6c7cb; background: #fff5f5; color: #9b1c27; }
.tbnhi-error p { margin: 4px 0 0; }
.tbnhi-field { margin-bottom: 16px; }
.tbnhi-field label { display: block; margin-bottom: 7px; color: var(--tb-ink); font-size: 13.5px; font-weight: 650; }
.tbnhi-field input { width: 100%; min-height: 50px; padding: 0 15px; border: 1px solid #cdd5e4; border-radius: 12px; background: #fff; color: var(--tb-ink); font-size: 15.5px; transition: border-color .2s, box-shadow .2s; }
.tbnhi-field input:focus { border-color: var(--tb-royal); outline: 0; box-shadow: 0 0 0 4px rgba(65,105,225,.18); }
.tbnhi-field input[aria-invalid="true"] { border-color: #d64553; }
.tbnhi-password { position: relative; }
.tbnhi-password input { padding-right: 76px; }
.tbnhi-reveal { position: absolute; top: 50%; right: 6px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--tb-soft); color: var(--tb-royal-dark); font-size: 13px; font-weight: 650; cursor: pointer; transform: translateY(-50%); }
.tbnhi-form-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 2px 0 22px; font-size: 14px; }
.tbnhi-remember { display: inline-flex; align-items: center; gap: 8px; color: var(--tb-ink); cursor: pointer; }
.tbnhi-remember input { width: 17px; height: 17px; accent-color: var(--tb-royal); }
.tbnhi-form-options a { font-weight: 650; text-decoration: none; }
.tbnhi-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--tb-royal), var(--tb-navy)); color: #fff; font-size: 15.5px; font-weight: 700; cursor: pointer; box-shadow: 0 12px 28px rgba(49,84,196,.28); transition: transform .2s, box-shadow .2s; }
.tbnhi-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(49,84,196,.34); }
.tbnhi-access-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 16px 0 0; color: var(--tb-muted); font-size: 12.5px; }
.tbnhi-help { margin-top: 24px; padding: 16px 18px; border-left: 3px solid var(--tb-red); border-radius: 0 12px 12px 0; background: var(--tb-soft); font-size: 13.5px; line-height: 1.55; }
.tbnhi-help strong { color: var(--tb-navy); }
.tbnhi-help p { margin: 4px 0 8px; color: var(--tb-muted); }
.tbnhi-help a { font-weight: 650; text-decoration: none; }
.tbnhi-other { margin: 20px 0 0; color: var(--tb-muted); font-size: 13px; line-height: 1.6; }
.tbnhi-other a { font-weight: 650; text-decoration: none; }
.tbnhi-login-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #8b97ab; font-size: 11.5px; }

@media (max-width: 1280px) and (min-width: 961px) {
    .tbnhi-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tbnhi-values li { aspect-ratio: 16 / 7; }
}
@media (max-width: 960px) {
    .tbnhi-entry { grid-template-columns: minmax(0, 1fr); padding: 13px 10px 10px; }
    .tbnhi-access { order: -1; padding: 8px 14px 10px; }
    .tbnhi-platform { align-self: stretch; flex-direction: row; justify-content: space-between; align-items: center; }
    .tbnhi-form-wrap { padding-top: 10px; }
    .tbnhi-story { min-height: 0; border-radius: 20px; }
    .tbnhi-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tbnhi-values li { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
    .tbnhi-story h2 { font-size: 32px; }
    .tbnhi-hospital img { width: 56px; height: 56px; }
    .tbnhi-hospital h1 { font-size: 21px; }
    .tbnhi-motion { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .tbnhi-story__video { display: none; }
    .tbnhi-motion { display: none !important; }
}
