/* Rotary Club of Health Keepers — member sign-in (2026-09-24). Rotary palette:
   Royal Blue #17458f, Gold #f7a81b, Azure #0067c8, Sky Blue #00a2e0. */
:root {
    color-scheme: light;
    --rc-blue: #17458f;
    --rc-deep: #123a78;
    --rc-night: #0c2a5a;
    --rc-azure: #0067c8;
    --rc-azure-deep: #0054a6;
    --rc-gold: #f7a81b;
    --rc-sky: #00a2e0;
    --rc-ink: #0f1f3d;
    --rc-muted: #56627a;
    --rc-line: #dde3ee;
    --rc-soft: #f3f6fb;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--rc-ink); background: #fff; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: var(--rc-deep); text-underline-offset: 4px; }
button, a, input { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--rc-blue); outline-offset: 3px; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; }
.rc-skip { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 14px; border-radius: 8px; background: #fff; color: var(--rc-deep); transform: translateY(-150%); }
.rc-skip:focus { transform: none; }

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

/* Story panel */
.rc-story { position: relative; display: flex; flex-direction: column; gap: 32px; overflow: hidden; padding: clamp(28px, 4vw, 56px); border-radius: 24px; color: #fff; background: var(--rc-night); isolation: isolate; }
.rc-story__media { position: absolute; inset: 0; z-index: -2; }
.rc-story__media img, .rc-story__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.rc-story::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,42,90,.78) 0%, rgba(12,42,90,.32) 38%, rgba(12,42,90,.55) 62%, rgba(8,28,64,.95) 100%), linear-gradient(90deg, rgba(0,103,200,.35), transparent 70%); }
.rc-story::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--rc-gold) 0 58%, var(--rc-azure) 58% 80%, var(--rc-sky) 80% 100%); }
.rc-brand { display: flex; align-items: center; gap: 14px; }
.rc-brand img { width: min(360px, 100%); height: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
.rc-brand span { font-size: 12px; font-weight: 750; letter-spacing: .2em; color: var(--rc-gold); }
.rc-brand h1 { margin: 2px 0 0; font-size: 24px; letter-spacing: -.02em; color: #fff; }
.rc-brand p { margin: 3px 0 0; max-width: 16rem; font-size: 12px; line-height: 1.35; color: #d6e2f5; }
.rc-story__copy { margin-top: auto; max-width: 560px; }
.rc-eyebrow { margin: 0 0 16px; font-size: 11px; font-weight: 750; letter-spacing: .18em; color: var(--rc-gold); }
.rc-story .rc-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--rc-gold); }
.rc-story .rc-eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--rc-gold); }
.rc-story h2 { margin: 0; font-size: clamp(34px, 3.8vw, 56px); font-weight: 680; line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.rc-story h2 em { font-style: normal; font-weight: 560; color: var(--rc-gold); }
.rc-story__copy > p:last-child { max-width: 420px; margin: 20px 0 0; font-size: 15.5px; line-height: 1.75; color: #dbe6f7; }
.rc-areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.rc-areas li { position: relative; overflow: hidden; aspect-ratio: 4 / 3.3; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(255,255,255,.08); }
.rc-areas img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.rc-areas li::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(8,28,64,.9)); }
.rc-areas li:hover img { transform: scale(1.06); }
.rc-areas span { position: absolute; left: 9px; right: 9px; bottom: 9px; z-index: 1; display: flex; align-items: center; gap: 7px; color: #fff; font-size: 12px; font-weight: 650; line-height: 1.25; }
.rc-areas i { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--rc-azure); }
.rc-areas svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rc-place { display: flex; align-items: center; gap: 7px; margin: -14px 0 0; color: #bfd0ea; font-size: 12.5px; }
.rc-place svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Access panel */
.rc-access { display: flex; flex-direction: column; padding: 18px clamp(24px, 4vw, 64px) 14px; }
.rc-platform { align-self: flex-end; display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--rc-muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.rc-platform:hover { color: var(--rc-deep); }
.rc-form-wrap { width: 100%; max-width: 410px; margin: auto; padding: 28px 0; }
.rc-form-mark { width: 250px; height: auto; margin-bottom: 22px; object-fit: contain; }
.rc-form-wrap > .rc-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--rc-deep); }
.rc-form-wrap > .rc-eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--rc-azure); }
.rc-form-wrap h2 { margin: 0 0 8px; font-size: 36px; line-height: 1.1; letter-spacing: -.035em; }
.rc-intro { margin: 0 0 28px; color: var(--rc-muted); font-size: 15px; }
.rc-field { margin-bottom: 18px; }
.rc-field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 650; }
.rc-field input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid #cdd6e6; border-radius: 12px; background: var(--rc-soft); color: var(--rc-ink); font-size: 16px; transition: border-color .15s, box-shadow .15s, background .15s; }
.rc-field input::placeholder { color: #74809a; font-size: 14.5px; }
.rc-field input:focus { border-color: var(--rc-blue); background: #fff; box-shadow: 0 0 0 4px rgba(23,69,143,.16); outline: none; }
.rc-field input[aria-invalid] { border-color: #bd3434; }
.rc-password { position: relative; }
.rc-password input { padding-right: 76px; }
.rc-password button { position: absolute; right: 6px; top: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--rc-deep); font-size: 13px; font-weight: 650; cursor: pointer; }
.rc-password button:hover { background: #e7eefb; }
.rc-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 24px; font-size: 13.5px; }
.rc-options label { display: inline-flex; align-items: center; gap: 8px; color: var(--rc-muted); }
.rc-options input { width: 17px; height: 17px; accent-color: var(--rc-blue); }
.rc-options a { font-weight: 600; text-decoration: none; }
.rc-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 54px; padding: 0 20px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--rc-azure), var(--rc-azure-deep)); color: #fff; font-size: 15.5px; font-weight: 650; cursor: pointer; box-shadow: 0 12px 28px rgba(0,103,200,.28); transition: transform .15s, box-shadow .15s; }
.rc-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(0,103,200,.34); }
.rc-notice { margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; background: #e9f7ef; color: #1e6b3c; font-size: 14px; }
.rc-error { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #f1c7c7; border-radius: 12px; background: #fdf2f2; color: #8f2424; font-size: 14px; }
.rc-error p { margin: 4px 0 0; }
.rc-help { margin-top: 26px; padding: 16px 18px; border-left: 3px solid var(--rc-gold); border-radius: 14px; background: #fff6e3; font-size: 13.5px; }
.rc-help strong { display: block; font-size: 14px; }
.rc-help p { margin: 4px 0 8px; color: var(--rc-muted); line-height: 1.6; }
.rc-help a { font-weight: 600; text-decoration: none; }
.rc-other { margin: 20px 0 0; color: var(--rc-muted); font-size: 13.5px; line-height: 1.7; }
.rc-other a { font-weight: 600; }
.rc-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px solid var(--rc-line); color: #74809a; font-size: 12px; }

@media (max-width: 1280px) and (min-width: 961px) {
    .rc-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rc-areas li { aspect-ratio: 16 / 9; }
    .rc-story { gap: 24px; }
}
@media (max-width: 960px) {
    .rc-entry { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 10px; }
    .rc-story { min-height: 440px; border-radius: 20px; }
    .rc-access { padding-inline: clamp(18px, 5vw, 40px); }
    .rc-platform { align-self: flex-start; }
    .rc-access { order: -1; }
    .rc-story { min-height: 0; }
    .rc-form-wrap { padding-top: 8px; }
}
@media (max-width: 560px) {
    .rc-story { min-height: 0; gap: 24px; padding: 22px; }
    .rc-story h2 { font-size: 32px; }
    .rc-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rc-areas li { aspect-ratio: 16 / 10; }
    .rc-form-wrap h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .rc-story__media video { display: none; }
    .rc-areas img, .rc-submit { transition: none; }
}
