/* Ilocos Norte Toastmasters Club — member sign-in (2026-09-24). Toastmasters palette:
   Loyal Blue #004165, True Maroon #772432, Cool Gray #A9B2B1, Happy Yellow #F2DF74. */
:root {
    color-scheme: light;
    --tm-blue: #004165;
    --tm-deep: #00324e;
    --tm-night: #00243a;
    --tm-maroon: #772432;
    --tm-maroon-deep: #5c1a26;
    --tm-yellow: #f2df74;
    --tm-gray: #a9b2b1;
    --tm-ink: #0d2233;
    --tm-muted: #55646b;
    --tm-line: #dde2e1;
    --tm-soft: #f4f6f6;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--tm-ink); background: #fff; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: var(--tm-deep); text-underline-offset: 4px; }
button, a, input { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--tm-blue); outline-offset: 3px; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; }
.tm-skip { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 14px; border-radius: 8px; background: #fff; color: var(--tm-deep); transform: translateY(-150%); }
.tm-skip:focus { transform: none; }

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

/* Story panel */
.tm-story { position: relative; display: flex; flex-direction: column; gap: 32px; overflow: hidden; padding: clamp(28px, 4vw, 56px); border-radius: 24px; color: #fff; background: var(--tm-night); isolation: isolate; }
.tm-story__media { position: absolute; inset: 0; z-index: -2; }
.tm-story__media img, .tm-story__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.tm-story::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,36,58,.78) 0%, rgba(0,36,58,.38) 38%, rgba(0,36,58,.58) 62%, rgba(0,26,42,.95) 100%), linear-gradient(90deg, rgba(119,36,50,.42), transparent 70%); }
.tm-story::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--tm-maroon) 0 55%, var(--tm-yellow) 55% 72%, var(--tm-gray) 72% 100%); }
.tm-brand { display: flex; align-items: center; gap: 14px; }
.tm-brand img { width: 96px; height: 80px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.28)); }
.tm-brand span { font-size: 12px; font-weight: 750; letter-spacing: .2em; color: var(--tm-yellow); }
.tm-brand h1 { margin: 2px 0 0; font-size: 24px; letter-spacing: -.02em; color: #fff; }
.tm-brand p { margin: 3px 0 0; max-width: 16rem; font-size: 12px; line-height: 1.35; color: #d7e2e7; }
.tm-story__copy { margin-top: auto; max-width: 560px; }
.tm-eyebrow { margin: 0 0 16px; font-size: 11px; font-weight: 750; letter-spacing: .18em; color: var(--tm-yellow); }
.tm-story .tm-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--tm-yellow); }
.tm-story .tm-eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--tm-yellow); }
.tm-story h2 { margin: 0; font-size: clamp(34px, 3.8vw, 56px); font-weight: 680; line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.tm-story h2 em { font-style: normal; font-weight: 560; color: var(--tm-yellow); }
.tm-story__copy > p:last-child { max-width: 420px; margin: 20px 0 0; font-size: 15.5px; line-height: 1.75; color: #dde7ec; }
.tm-skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tm-skills 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); }
.tm-skills img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tm-skills li::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(0,26,42,.9)); }
.tm-skills li:hover img { transform: scale(1.06); }
.tm-skills 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; }
.tm-skills i { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--tm-maroon); }
.tm-skills svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tm-place { display: flex; align-items: center; gap: 7px; margin: -14px 0 0; color: #c3d1d7; font-size: 12.5px; }
.tm-place svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

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

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