/* Inter-Asia Academy — member sign-in (v2, 2026-09-23). Photo/video-led story panel + calm form. */
:root {
    color-scheme: light;
    --iaa-blue: #3054e8;
    --iaa-deep: #1c3aa9;
    --iaa-night: #0c1f5c;
    --iaa-sky: #7acbf5;
    --iaa-ink: #132653;
    --iaa-muted: #596780;
    --iaa-line: #dbe5f4;
    --iaa-soft: #f3f7fe;
    --iaa-orange: #f58220;
    --iaa-orange-soft: #ffe7d1;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--iaa-ink); background: #fff; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: var(--iaa-deep); text-underline-offset: 4px; }
button, a, input { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--iaa-blue); outline-offset: 3px; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; }
.iaa-skip { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 14px; border-radius: 8px; background: #fff; color: var(--iaa-deep); transform: translateY(-150%); }
.iaa-skip:focus { transform: none; }

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

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

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

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