:root {
    --portal-navy: #06396f;
    --portal-blue: #0c66b1;
    --portal-sky: #2ba9dc;
    --portal-ink: #18304b;
    --portal-muted: #63758a;
    --portal-line: #dce5ef;
}

* { box-sizing: border-box; }

.portal-login-body {
    min-width: 320px;
    margin: 0;
    color: var(--portal-ink);
    background: #f4f8fc;
    font-family: "Be Vietnam Pro", "Public Sans", Arial, sans-serif;
}

.portal-login { display: grid; grid-template-columns: minmax(440px, 1.08fr) minmax(440px, .92fr); min-height: 100vh; }

.portal-login__showcase {
    position: relative;
    display: flex;
    min-height: 700px;
    padding: clamp(36px, 6vw, 82px) clamp(38px, 7vw, 112px) 35px;
    overflow: hidden;
    flex-direction: column;
    color: #fff;
    background: radial-gradient(circle at 83% 16%, rgba(38, 169, 219, .3), transparent 25%), linear-gradient(137deg, #042b59 0%, #084c88 55%, #0b75ad 120%);
}

.portal-login__showcase::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 42px 42px; content: ""; mask-image: linear-gradient(to bottom, #000, transparent 78%); }
.showcase-orb { position: absolute; border: 1px solid rgba(197, 237, 255, .22); border-radius: 50%; pointer-events: none; }
.showcase-orb--large { width: 510px; height: 510px; right: -230px; bottom: -225px; box-shadow: 0 0 0 52px rgba(101, 205, 242, .05), 0 0 0 105px rgba(101, 205, 242, .035); }
.showcase-orb--small { width: 180px; height: 180px; top: 12%; right: 8%; border-color: rgba(197, 237, 255, .13); }

.portal-brand { position: relative; z-index: 1; display: inline-flex; align-items: center; width: fit-content; gap: 12px; color: #fff; text-decoration: none; }
.portal-brand__mark { display: inline-grid; width: 45px; height: 45px; place-items: center; border: 1px solid rgba(255,255,255,.26); border-radius: 13px; background: rgba(255,255,255,.14); box-shadow: 0 10px 22px rgba(0,0,0,.14); font-size: 1.45rem; }
.portal-brand strong, .portal-brand small { display: block; line-height: 1.25; }
.portal-brand strong { font-size: .78rem; font-weight: 800; letter-spacing: .065em; }
.portal-brand small { margin-top: 3px; color: #b9dbf1; font-size: .56rem; font-weight: 600; letter-spacing: .045em; }

.showcase-copy { position: relative; z-index: 1; max-width: 545px; margin-top: auto; padding-top: 80px; }
.showcase-kicker, .login-panel__eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .68rem; font-weight: 800; letter-spacing: .13em; }
.showcase-kicker { color: #8fddfb; }
.showcase-kicker i { font-size: 1rem; }
.showcase-copy h1 { max-width: 540px; margin: 18px 0; color: #fff; font-size: clamp(2.15rem, 4vw, 3.7rem); font-weight: 700; letter-spacing: -.052em; line-height: 1.17; }
.showcase-copy h1 em { color: #7ce0ff; font-style: normal; }
.showcase-copy p { max-width: 475px; margin: 0; color: #c1d8e9; font-size: .94rem; line-height: 1.8; }
.showcase-features { position: relative; z-index: 1; display: flex; gap: 34px; margin-top: 44px; }
.showcase-features > div { display: flex; align-items: center; gap: 11px; }
.showcase-features > div > i { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 9px; color: #79dbfc; background: rgba(122, 219, 252, .13); font-size: 1.1rem; }
.showcase-features strong, .showcase-features small { display: block; }
.showcase-features strong { font-size: .75rem; font-weight: 700; }
.showcase-features small { margin-top: 3px; color: #b4cee3; font-size: .64rem; }
.showcase-footer { position: relative; z-index: 1; margin: auto 0 0; padding-top: 30px; color: #9fc3da; font-size: .67rem; }

.portal-login__form-area { display: grid; min-width: 0; padding: 40px; place-items: center; background: #fff; }
.login-panel { width: min(100%, 405px); }
.login-panel__mobile-brand { display: none; }
.login-panel__header { margin-bottom: 34px; }
.login-panel__eyebrow { color: var(--portal-blue); }
.login-panel__header h2 { margin: 10px 0 9px; color: #132f4e; font-size: clamp(1.75rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -.045em; }
.login-panel__header p { margin: 0; color: var(--portal-muted); font-size: .84rem; line-height: 1.6; }

.portal-login-form { display: grid; gap: 22px; }
.portal-field { position: relative; }
.portal-field > label { display: block; margin-bottom: 8px; color: #304965; font-size: .8rem; font-weight: 700; }
.portal-input { display: flex; align-items: center; height: 52px; overflow: hidden; border: 1px solid var(--portal-line); border-radius: 11px; background: #fbfdff; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.portal-input:focus-within { border-color: #2b89d0; background: #fff; box-shadow: 0 0 0 4px rgba(43, 137, 208, .12); }
.portal-input > i { flex: 0 0 47px; color: #6c8198; font-size: 1.22rem; text-align: center; }
.portal-input input { width: 100%; min-width: 0; height: 100%; padding: 0 14px 0 0; border: 0; outline: 0; color: #1d3755; background: transparent; font: inherit; font-size: .87rem; }
.portal-input input::placeholder { color: #9aa9b9; }
.password-toggle { display: grid; width: 47px; height: 100%; padding: 0; place-items: center; border: 0; color: #627991; background: transparent; cursor: pointer; }
.password-toggle:hover { color: var(--portal-blue); }
.password-toggle i { font-size: 1.18rem; }
.portal-field__hint { display: block; margin-top: 6px; color: #8495a8; font-size: .66rem; }
.portal-validation { display: block; margin-top: 6px; color: #b42318; font-size: .7rem; }
.login-validation:not(:empty) { padding: 12px 14px; border: 1px solid #fecdc8; border-radius: 10px; color: #b42318; background: #fff5f4; font-size: .78rem; line-height: 1.5; }
.login-validation ul { margin: 0; padding-left: 18px; }
.portal-login-form__options { display: flex; align-items: center; min-height: 19px; margin-top: -4px; }
.remember-control { display: inline-flex; align-items: center; gap: 8px; color: #536a81; font-size: .75rem; cursor: pointer; }
.remember-control input { width: 16px; height: 16px; margin: 0; accent-color: var(--portal-blue); cursor: pointer; }
.portal-submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; gap: 11px; margin-top: 3px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(112deg, #07549a, #137fc8); box-shadow: 0 12px 20px rgba(8, 91, 165, .22); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.portal-submit i { font-size: 1.25rem; transition: transform .18s ease; }
.portal-submit:hover { background: linear-gradient(112deg, #064a88, #0e70b4); box-shadow: 0 14px 24px rgba(8, 91, 165, .3); transform: translateY(-1px); }
.portal-submit:hover i { transform: translateX(3px); }
.portal-submit:focus-visible, .password-toggle:focus-visible { outline: 3px solid rgba(43, 137, 208, .35); outline-offset: 2px; }
.login-panel__help { display: flex; align-items: flex-start; gap: 6px; margin: 31px 0 0; padding-top: 20px; border-top: 1px solid #eaf0f5; color: #8293a4; font-size: .7rem; line-height: 1.55; }
.login-panel__help i { margin-top: 1px; color: #4e86ba; font-size: .9rem; }

@media (max-width: 991px) {
    .portal-login { grid-template-columns: 1fr; }
    .portal-login__showcase { display: none; }
    .portal-login__form-area { min-height: 100vh; }
    .login-panel__mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; color: #1c4d7d; font-size: .71rem; font-weight: 800; letter-spacing: .05em; }
    .login-panel__mobile-brand .portal-brand__mark { width: 39px; height: 39px; border: 0; color: #fff; background: linear-gradient(135deg, #0a579c, #1594cf); font-size: 1.25rem; box-shadow: 0 8px 16px rgba(13, 102, 177, .18); }
    .login-panel__mobile-brand small { display: block; margin-top: 3px; color: #6d89a5; font-size: .55rem; font-weight: 600; letter-spacing: .04em; }
}

@media (max-width: 540px) {
    .portal-login__form-area { padding: 30px 22px; place-items: start center; }
    .login-panel { padding-top: 15px; }
    .login-panel__mobile-brand { margin-bottom: 42px; }
    .login-panel__header { margin-bottom: 30px; }
    .login-panel__header h2 { font-size: 1.8rem; }
    .portal-login-form { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
