/* EVTM Asia 2026 | Secure E-Poster Portal - Login */
:root {
    color-scheme: light;
    --night: #071723;
    --night-mid: #0c2534;
    --cyan: #74d8f1;
    --cyan-glow: #34a8ce;
    --ink: #162b38;
    --body-text: #657581;
    --hairline: #dde5ea;
    --focus-ring: rgba(29, 151, 201, .19);
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-width: 320px; min-height: 100vh; font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(30, 159, 207, .42); outline-offset: 3px; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr); min-height: 100vh; min-height: 100dvh; }

/* Dark portal introduction */
.story-pane {
    position: relative; isolation: isolate; min-height: 800px; padding: 36px clamp(32px, 4.4vw, 84px) 30px;
    display: flex; flex-direction: column; overflow: hidden; color: #f4f8fb;
    background: radial-gradient(ellipse at 66% 69%, rgba(22, 101, 131, .35), transparent 54%),
        radial-gradient(ellipse at 8% 3%, rgba(18, 79, 109, .32), transparent 44%),
        linear-gradient(145deg, #0a2433, #071722 65%, #05121c);
}
.story-pane::before { content: ""; position: absolute; z-index: -1; width: 760px; height: 760px; right: -390px; top: 4%; border: 1px solid rgba(104, 203, 230, .14); border-radius: 50%; box-shadow: 0 0 0 90px rgba(65, 165, 202, .026), 0 0 0 180px rgba(65, 165, 202, .021), 0 0 0 280px rgba(65, 165, 202, .014); pointer-events: none; }
.story-pane::after { content: ""; position: absolute; top: 20%; right: 0; height: 400px; width: 1px; background: linear-gradient(transparent, rgba(112, 208, 240, .23), transparent); pointer-events: none; }
.story-pattern { position: absolute; z-index: -1; inset: 0; opacity: .29; pointer-events: none; background-image: linear-gradient(rgba(90, 190, 220, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(90, 190, 220, .09) 1px, transparent 1px); background-size: 80px 80px; -webkit-mask-image: linear-gradient(to top, black, transparent 85%); mask-image: linear-gradient(to top, black, transparent 85%); }
.story-brand { position: relative; display: flex; align-items: center; gap: 15px; max-width: 660px; }
.brand-image-wrap { width: 66px; height: 66px; flex: 0 0 66px; display: grid; place-items: center; padding: 7px; border-radius: 14px; background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.13); }
.brand-image-wrap img { width: 52px; height: 52px; object-fit: contain; }
.brand-identity { display: flex; flex-direction: column; min-width: 0; }
.brand-identity strong { font-size: 23px; font-weight: 850; line-height: 1.12; letter-spacing: .025em; white-space: nowrap; }
.brand-identity strong span { font-weight: 600; color: #97cfe2; }
.brand-identity small { margin-top: 8px; font-size: 10px; font-weight: 700; letter-spacing: .16em; color: #9bb5c2; white-space: nowrap; }
.story-content { position: relative; width: min(100%, 690px); margin: auto 0 0; padding-top: clamp(44px, 7vh, 96px); }
.section-marker { display: flex; align-items: center; gap: 12px; font-size: 10px; font-weight: 850; letter-spacing: .18em; color: #8fdaef; }
.marker-line { display: inline-block; width: 28px; height: 2px; background: var(--cyan); }
.story-content h1 { margin: 24px 0 22px; font-size: clamp(48px, 5.1vw, 86px); line-height: 1.035; letter-spacing: -.055em; font-weight: 780; }
.story-content h1 span:not(.period) { color: #91daf0; }
.story-content h1 .period { color: #68cbe9; }
.story-description { max-width: 550px; margin: 0; font-size: clamp(14px, 1.16vw, 17px); line-height: 1.8; color: #9eb3c1; }
.story-features { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; margin-top: 32px; }
.story-feature { display: inline-flex; align-items: center; gap: 8px; color: #cbdde6; font-size: 12px; font-weight: 550; white-space: nowrap; }
.feature-icon { display: inline-grid; place-items: center; width: 25px; height: 25px; color: #77c9e4; }
.feature-icon svg { width: 20px; height: 20px; }

/* Abstract interface: illustrative only, never discloses private poster images */
.portal-preview { position: relative; flex: 0 0 auto; width: min(95%, 630px); height: 235px; margin: clamp(38px, 5.5vh, 80px) 0 32px; border-radius: 15px 15px 0 0; overflow: hidden; border: 1px solid rgba(153, 214, 240, .2); border-bottom: 0; background: #091c28; box-shadow: 0 22px 88px rgba(0,0,0,.23), 26px 26px 0 rgba(9, 42, 60, .29); transform: rotate(-.8deg); transform-origin: bottom left; }
.portal-preview::after { content: ""; position: absolute; inset: auto 0 0; height: 48px; background: linear-gradient(transparent, #081824 85%); pointer-events: none; }
.preview-topbar { display: flex; align-items: center; gap: 5px; height: 29px; padding: 0 14px; background: #06141e; border-bottom: 1px solid rgba(124,197,228,.11); }
.preview-dot { width: 5px; height: 5px; border-radius: 50%; background: #3f6475; }
.preview-dot:first-child { background: #64b4cc; }
.preview-toplabel { margin-left: 10px; font-size: 7px; font-weight: 800; letter-spacing: .18em; color: #6996aa; }
.preview-rightside { margin-left: auto; color: #497788; font-size: 8px; font-weight: 700; letter-spacing: .2em; }
.preview-interface { padding: 18px 23px; }
.preview-interface-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 16px; }
.preview-interface-top > div:first-child { display: flex; flex-direction: column; gap: 7px; }
.preview-tiny-label { font-size: 7px; font-weight: 800; color: #62c3df; letter-spacing: .2em; }
.preview-title-bar { width: 117px; height: 9px; background: #bfd7e3; border-radius: 2px; opacity: .75; }
.preview-search-shape { display: flex; align-items: center; gap: 9px; width: 43%; height: 29px; padding: 0 10px; border: 1px solid #254556; border-radius: 6px; }
.preview-search-shape svg { width: 13px; height: 13px; color: #5a889e; }
.preview-search-shape span { width: 76%; height: 6px; background: #28475a; border-radius: 2px; }
.preview-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.preview-card { position: relative; min-width: 0; height: 125px; padding: 9px; border: 1px solid #224050; border-radius: 8px; background: #0e2836; overflow: hidden; }
.preview-card.is-highlighted { border-color: #6bc9e5; box-shadow: 0 0 0 1px rgba(107,201,229,.1); }
.poster-graphic { display: block; height: 66px; margin-bottom: 11px; background: linear-gradient(135deg, #12485b 9%, #266781 48%, #0d3a4f 48.5%, #154e63); border: 1px solid #386a7a; position: relative; overflow: hidden; }
.poster-graphic::before { content: ""; position: absolute; inset: 10px 14px auto; height: 3px; background: rgba(213,244,250,.55); box-shadow: 0 9px 0 rgba(213,244,250,.28), 0 18px 0 rgba(213,244,250,.15); }
.poster-graphic::after { content: ""; position: absolute; width: 32px; height: 17px; bottom: 6px; right: 9px; background: linear-gradient(135deg, #62b9ce, #3a889f); border-radius: 2px 2px 0 0; }
.preview-card:nth-child(2) .poster-graphic { background: linear-gradient(132deg, #133b4d, #41667d 62%, #0a263a); }
.preview-card:nth-child(3) .poster-graphic { background: linear-gradient(132deg, #0b2e3f, #1c6979 62%, #0a263a); }
.preview-card b, .preview-card span, .preview-card em { display: block; height: 4px; border-radius: 2px; background: #53798d; opacity: .8; margin-top: 6px; }
.preview-card b { width: 48%; background: #67b5d2; }
.preview-card span { width: 87%; }
.preview-card em { width: 64%; opacity: .42; }
.story-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(155, 210, 236, .13); color: #7596a6; font-size: 9px; font-weight: 750; letter-spacing: .15em; }
.story-footer i { display: inline-block; width: 3px; height: 3px; margin: 0 9px 2px; border-radius: 50%; background: #4e7f95; }

/* Right-side login content */
.form-pane { position: relative; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 38px clamp(26px, 5.2vw, 96px) 29px; background: #f8fafb; }
.form-pane::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, #0b617e, #50c1df 55%, #b1e6f2); }
.form-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.top-indicator { display: flex; align-items: center; gap: 9px; color: #56717f; font-size: 9px; letter-spacing: .15em; font-weight: 850; white-space: nowrap; }
.indicator-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; background: #2fb79e; border-radius: 50%; box-shadow: 0 0 0 4px rgba(47,183,158,.10); }
.top-issue { font-size: 10px; letter-spacing: .12em; color: #a8b8c0; font-weight: 750; white-space: nowrap; }
.form-panel { width: min(100%, 422px); margin: auto; padding: 46px 0 40px; }
.form-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 29px; color: #176b91; border-radius: 16px; background: #e4f5fb; border: 1px solid #ccecf6; }
.form-icon svg { width: 30px; height: 30px; }
.form-eyebrow { display: inline-block; margin-bottom: 11px; color: #177da3; font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.form-heading h2 { margin: 0; color: #122c3b; font-size: clamp(40px, 3.55vw, 54px); line-height: 1.08; letter-spacing: -.055em; font-weight: 800; }
.form-heading h2 span { color: #37a7ca; }
.form-heading p { max-width: 355px; margin: 17px 0 36px; color: var(--body-text); font-size: 14px; line-height: 1.8; }
.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 9px; color: #254353; font-size: 12px; font-weight: 750; }
.input-shell { position: relative; display: flex; align-items: center; height: 55px; border: 1px solid #d6e1e8; border-radius: 11px; background: #fff; box-shadow: 0 2px 6px rgba(14,58,78,.018); transition: border-color .18s, box-shadow .18s; }
.input-shell:focus-within { border-color: #3ba3c6; box-shadow: 0 0 0 4px var(--focus-ring); }
.input-shell .input-symbol { flex: 0 0 19px; width: 19px; height: 19px; margin-left: 17px; color: #8ca3af; }
.input-shell input { width: 100%; min-width: 0; height: 100%; outline: none; border: 0; border-radius: 11px; padding: 0 14px; color: #142f40; background: transparent; font-size: 14px; letter-spacing: .01em; }
.input-shell input::placeholder { color: #a8b6c0; }
.input-shell input:focus-visible { outline: 0; }
.password-field { margin-bottom: 29px; }
.password-field input { padding-right: 3px; }
.toggle-password { display: grid; place-items: center; flex: 0 0 44px; height: 44px; margin-right: 6px; border: 0; border-radius: 8px; background: transparent; color: #718995; }
.toggle-password:hover { color: #1c789a; background: #eff7fa; }
.toggle-password svg { width: 20px; height: 20px; }
.toggle-password .eye-closed { display: none; }
.toggle-password.is-revealed .eye-open { display: none; }
.toggle-password.is-revealed .eye-closed { display: block; }
.submit-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 57px; padding: 0 22px 0 24px; border: 1px solid #075b7c; border-radius: 11px; color: #fff; background: linear-gradient(100deg, #0a688b, #086080); font-size: 14px; font-weight: 770; letter-spacing: .015em; box-shadow: 0 10px 22px rgba(10, 99, 138, .15); transition: transform .18s, background .18s, box-shadow .18s; }
.submit-button:hover { transform: translateY(-1px); background: linear-gradient(100deg, #087da5, #0a6d92); box-shadow: 0 14px 26px rgba(10,99,138,.24); }
.submit-button:active { transform: translateY(0); }
.submit-button svg { width: 20px; height: 20px; }
.access-note { display: flex; align-items: flex-start; gap: 11px; padding: 20px 0 0; margin-top: 26px; border-top: 1px solid #dfe7ed; }
.access-note svg { width: 17px; height: 17px; flex: 0 0 17px; color: #6d99ad; margin-top: 2px; }
.access-note p { margin: 0; color: #85949e; font-size: 11px; line-height: 1.65; }
.form-error { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; margin: -12px 0 23px; background: #fff2f2; color: #9b3535; border: 1px solid #f3d2d2; border-radius: 9px; font-size: 12px; line-height: 1.5; }
.form-error svg { width: 18px; height: 18px; flex: 0 0 18px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 18px; margin-top: auto; border-top: 1px solid #e3eaef; color: #9ba9b2; font-size: 10px; letter-spacing: .02em; }

@media (max-width: 1280px) {
    .login-layout { grid-template-columns: minmax(0, 1fr) minmax(430px, .85fr); }
    .story-pane { padding-right: 35px; padding-left: 40px; }
    .story-content h1 { font-size: clamp(48px, 5.3vw, 72px); }
    .story-features { gap: 12px 17px; }
    .story-feature { font-size: 11px; }
    .form-pane { padding-right: clamp(36px, 5vw, 72px); padding-left: clamp(36px, 5vw, 72px); }
}
@media (max-width: 990px) {
    .login-layout { grid-template-columns: minmax(0, 1fr) minmax(390px, .98fr); }
    .story-pane { min-height: 730px; padding: 30px 28px 26px; }
    .brand-image-wrap { width: 57px; height: 57px; flex-basis: 57px; }
    .brand-image-wrap img { width: 47px; height: 47px; }
    .brand-identity strong { font-size: 19px; }
    .brand-identity small { font-size: 8px; letter-spacing: .11em; }
    .story-content h1 { font-size: clamp(44px, 5.2vw, 60px); }
    .portal-preview { width: 100%; height: 210px; margin-top: 45px; }
    .story-footer span:last-child { display: none; }
    .form-pane { padding-right: 33px; padding-left: 33px; }
}
@media (max-width: 760px) {
    .login-layout { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
    .story-pane { min-height: 0; padding: 24px 24px 25px; }
    .story-pane::before { width: 350px; height: 350px; right: -240px; top: -230px; box-shadow: 0 0 0 45px rgba(65,165,202,.025), 0 0 0 105px rgba(65,165,202,.018); }
    .story-pattern { opacity: .16; }
    .brand-image-wrap { width: 48px; height: 48px; flex-basis: 48px; padding: 4px; border-radius: 10px; }
    .brand-image-wrap img { width: 40px; height: 40px; }
    .story-brand { gap: 12px; }
    .brand-identity strong { font-size: 17px; }
    .brand-identity small { font-size: 7px; letter-spacing: .11em; margin-top: 5px; }
    .story-content { padding-top: 22px; }
    .section-marker { font-size: 9px; }
    .story-content h1 { font-size: clamp(33px, 7.5vw, 47px); margin: 13px 0 9px; line-height: 1.03; }
    .story-content h1 br { display: none; }
    .story-content h1 br::after { content: ' '; }
    .story-description, .story-features, .portal-preview, .story-footer { display: none; }
    .form-pane { flex: 1; min-height: 0; padding: 25px 24px 21px; }
    .form-panel { margin: 32px auto 45px; padding: 0; }
    .form-icon { width: 47px; height: 47px; margin-bottom: 21px; border-radius: 13px; }
    .form-icon svg { width: 25px; height: 25px; }
    .form-heading h2 { font-size: 42px; }
    .form-heading p { margin: 12px 0 26px; font-size: 13px; }
    .field { margin-bottom: 20px; }
    .password-field { margin-bottom: 25px; }
}
@media (max-width: 400px) {
    .story-pane { padding-right: 18px; padding-left: 18px; }
    .form-pane { padding-right: 18px; padding-left: 18px; }
    .top-issue { display: none; }
    .story-content h1 { font-size: 33px; }
    .brand-identity strong { font-size: 15px; }
    .brand-identity small { font-size: 6.5px; }
}
@media (max-height: 770px) and (min-width: 761px) {
    .story-pane { min-height: 680px; }
    .story-content { padding-top: 28px; }
    .story-content h1 { margin: 18px 0 12px; font-size: clamp(45px, 4.7vw, 70px); }
    .story-features { margin-top: 22px; }
    .portal-preview { margin-top: 28px; height: 190px; }
    .form-panel { padding-top: 20px; padding-bottom: 20px; }
    .form-icon { margin-bottom: 19px; }
    .form-heading p { margin-bottom: 23px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Refined minimal login layout */
.story-content { margin: auto 0; padding: 35px 0; max-width: 650px; }
.story-content h1 { margin: 26px 0 20px; font-size: clamp(38px, 4.1vw, 66px); line-height: 1.12; letter-spacing: -.04em; }
.story-description { max-width: 530px; line-height: 1.8; }
.form-heading h2 { letter-spacing: -.035em; }
@media (max-width: 760px) {
    .story-content { margin: 0; padding: 22px 0 0; }
    .story-content h1 { font-size: clamp(29px, 7vw, 43px); margin: 14px 0 0; }
}

/* Participant access notice – left story panel */
.story-content { padding-top: 36px; padding-bottom: 36px; }
.story-description { font-size: 17px; line-height: 1.75; }
.login-notice {
    width: 100%;
    max-width: 570px;
    margin-top: clamp(32px, 5vh, 58px);
    padding: 24px 28px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(166, 216, 234, .23);
    border-left: 4px solid #71d3eb;
    border-radius: 10px;
}
.login-notice h2 {
    margin: 0 0 16px;
    color: #e0f7ff;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 750;
}
.login-notice p {
    margin: 0 0 14px;
    color: #e0ecf2;
    font-size: 17px;
    line-height: 1.65;
}
.login-notice p:last-child { margin-bottom: 0; }
.login-notice strong { color: #fff; font-weight: 750; }
@media (max-width: 990px) {
    .login-notice { padding: 20px 22px; margin-top: 28px; }
    .login-notice h2 { font-size: 21px; }
    .login-notice p { font-size: 15px; }
}
@media (max-width: 760px) {
    .story-content { padding: 18px 0 0; }
    .story-description { display: block; font-size: 14px; line-height: 1.6; margin-top: 12px; }
    .login-notice { margin-top: 22px; padding: 17px 18px; }
    .login-notice h2 { font-size: 20px; margin-bottom: 10px; }
    .login-notice p { font-size: 15px; line-height: 1.6; margin-bottom: 10px; }
}

/* Keep the time and timezone together on every screen size. */
.notice-time { white-space: nowrap; }

/* Wide left-panel notice: single-line deadline on desktop. */
@media (min-width: 1200px) {
    .story-content {
        width: 100%;
        max-width: none;
    }
    .login-notice {
        width: 100%;
        max-width: none;
        padding-right: 18px;
        padding-left: 24px;
    }
    .login-notice p:last-child {
        white-space: nowrap;
        font-size: clamp(12px, .99vw, 17px);
        letter-spacing: -.015em;
    }
}
@media (min-width: 761px) and (max-width: 1199px) {
    .story-content { width: 100%; max-width: none; }
    .login-notice { max-width: none; }
}
@media (max-width: 1199px) {
    .login-notice p:last-child { white-space: normal; }
}
