/* KPV GOLD access: one focused surface, with an inline sign-in form. */
.atgm-login-page { background: #300b1a; color-scheme: light; }
.atgm-access { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 100svh; padding: 26px 20px 20px; overflow: clip; font-family: 'Noto Sans Lao',Roboto,sans-serif; color: #43232e; background: radial-gradient(ellipse at 50% 20%,#76213b 0%,#4d1127 43%,#280b18 100%); }
.atgm-access *, .atgm-access *::before, .atgm-access *::after { box-sizing: border-box; }
/* Independent motion layers keep the form on a quiet, opaque surface. */
.atgm-access-atmosphere { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.atgm-access-backdrop { position: absolute; inset: -4%; background: url('/images/kpv-ci/atgm-engraved-lines.svg') 50% 50% / cover no-repeat; opacity: .12; mask-image: linear-gradient(90deg,#000,transparent 42%,transparent 62%,#000); animation: access-engraving 19s ease-in-out infinite alternate; }
.atgm-access-glow { position: absolute; width: 78vw; height: 78vw; max-width: 1000px; max-height: 1000px; border-radius: 50%; will-change: transform; }
.atgm-access-glow--gold { top: -53%; left: -24%; background: radial-gradient(circle,#e8ab5c20,transparent 64%); animation: access-gold-glow 17s ease-in-out infinite alternate; }
.atgm-access-glow--wine { bottom: -65%; right: -25%; background: radial-gradient(circle,#c33e6547,transparent 64%); animation: access-wine-glow 21s ease-in-out infinite alternate; }
.atgm-access-beams { position: absolute; inset: -50%; opacity: .4; background: linear-gradient(112deg,transparent 29%,#fbd08e09 34%,transparent 39%,transparent 60%,#ffdc9e0b 65%,transparent 69%); animation: access-beams 15s ease-in-out infinite alternate; will-change: transform; }
.atgm-access-trails { position: absolute; width: 100%; height: 100%; inset: 0; opacity: .65; }
.atgm-access-trail { stroke-dasharray: .12 .88; animation: access-trail 12s linear infinite; }
.atgm-access-trail:nth-child(2) { animation-duration: 16s; animation-delay: -7s; }
.atgm-access-trail:nth-child(3) { animation-duration: 19s; animation-delay: -12s; }
.atgm-access-particles { position: absolute; inset: 0; }
.atgm-access-particle { position: absolute; left: var(--particle-x); top: var(--particle-y); width: var(--particle-size); height: var(--particle-size); border-radius: 50%; background: #ffe1a8; box-shadow: 0 0 12px #f8c27780; opacity: 0; animation: access-particle var(--particle-duration) var(--particle-delay) linear infinite; will-change: transform,opacity; }
.atgm-access-particle.is-spark::before, .atgm-access-particle.is-spark::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: linear-gradient(90deg,transparent,#ffecc0,transparent); }
.atgm-access-particle.is-spark::before { width: 12px; height: 1px; }
.atgm-access-particle.is-spark::after { width: 1px; height: 12px; background: linear-gradient(transparent,#ffecc0,transparent); }
.atgm-access.is-bg-paused .bg-motion, .atgm-access.is-bg-paused .atgm-access-card::before { animation-play-state: paused !important; }
@keyframes access-engraving { from { opacity: .07; transform: translate(-1.3%,1%) scale(1); } to { opacity: .17; transform: translate(1.3%,-1%) scale(1.05); } }
@keyframes access-gold-glow { from { transform: translate(-8%,3%) scale(.85); } to { transform: translate(30%,12%) scale(1.15); } }
@keyframes access-wine-glow { from { transform: translate(4%,4%) scale(1); } to { transform: translate(-25%,-16%) scale(1.2); } }
@keyframes access-beams { from { transform: translateX(-9%) rotate(-7deg); } to { transform: translateX(10%) rotate(8deg); } }
@keyframes access-trail { from { stroke-dashoffset: 1; } to { stroke-dashoffset: -1; } }
@keyframes access-particle { 0% { opacity: 0; transform: translate(0,70px) scale(.5); } 16% { opacity: .6; } 65% { opacity: .42; } 100% { opacity: 0; transform: translate(45px,-260px) scale(.3); } }
@keyframes access-frame { from { background-position: 100% 0; } to { background-position: 0 0; } }
.atgm-access::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(120deg,transparent 26%,#f8c48004 48%,transparent 65%); }
.atgm-access-main { width: min(100%,480px); }
.atgm-access-card { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #c5a47670; border-radius: 17px; background: #fffcf7; box-shadow: 0 22px 70px #16041066,0 1px 0 #ffedc824; }
.atgm-access-card::before { content: ''; position: absolute; z-index: 4; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(110deg,transparent 30%,#ffe5b977 49%,transparent 68%); background-size: 350% 100%; mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); mask-composite: exclude; animation: access-frame 11s linear infinite; }
.atgm-access-brand { position: relative; display: flex; align-items: center; justify-content: space-between; height: 66px; padding: 0 29px; background: #560e25; }
.atgm-access-brand::after { content: ''; position: absolute; bottom: 0; left: 29px; right: 29px; height: 1px; background: linear-gradient(90deg,#f4cd8c40,transparent); }
.atgm-access-brand :is(img, .kpv-brand-logo) { display: block; width: 157px; height: auto; }
.atgm-access-brand > span { color: #dfbd8b; font: 400 11px/1 Roboto,Arial,sans-serif; letter-spacing: 2px; }
.atgm-access-showcase { position: relative; height: 204px; overflow: hidden; background: radial-gradient(ellipse at 50% 48%,#86243e 0%,#63132d 49%,#560e25 100%); border-bottom: 1px solid #d5b487; }
.atgm-story-chapter { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s ease,visibility .35s; }
.atgm-story-chapter.is-active { opacity: 1; visibility: visible; }
.atgm-access-art { position: absolute; top: 5px; left: 22px; right: 22px; height: 151px; display: flex; align-items: center; justify-content: center; }
.atgm-access-art > svg { display: block; width: auto; height: 100%; max-width: 100%; overflow: hidden; }
.atgm-story-chapter h2 { position: absolute; left: 45px; right: 45px; bottom: 28px; margin: 0; text-align: center; color: #f2d8b6; font-size: 11px; line-height: 1.6; font-weight: 400; }
.atgm-access-chapters { position: absolute; z-index: 3; left: 50%; bottom: 1px; transform: translateX(-50%); display: flex; gap: 8px; }
.atgm-access-chapters button { position: relative; overflow: hidden; display: block; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.atgm-access-chapters button::before { content: ''; position: absolute; top: 11px; left: 0; right: 0; height: 2px; border-radius: 2px; background: #edc79236; }
.atgm-access-progress { position: absolute; top: 11px; left: 0; width: 100%; height: 2px; border-radius: 2px; background: #f5d29b; transform: scaleX(0); transform-origin: left; }
.atgm-access-chapters .is-current .atgm-access-progress { animation: access-progress var(--chapter-duration) linear both; }
.atgm-access-motion { position: absolute; z-index: 3; top: 12px; right: 14px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #e7c38d35; border-radius: 50%; color: #e7c5a0; background: #3d0c2040; cursor: pointer; }
.atgm-access-motion svg { width: 14px; height: 14px; }
.atgm-access-form { padding: 22px 31px 21px; background: #fffcf7; }
.atgm-login__form-heading { margin-bottom: 18px; }
.atgm-login__form-heading h1 { margin: 0; color: #5c1029; font-size: 25px; line-height: 1.45; font-weight: 600; letter-spacing: -.3px; }
.atgm-login__form-heading p { margin: 4px 0 0; color: #856d77; font-size: 11px; line-height: 1.8; }
.atgm-login__form { gap: 18px; }
.atgm-login__form .fi-fo-component-ctn { gap: 15px; }
.atgm-login__form .fi-fo-field-wrp-label { color: #624b54; font-size: 12px; line-height: 1.5; font-weight: 500; }
.atgm-login__form .fi-fo-field-wrp { gap: 6px; }
.atgm-login__form .fi-input-wrp { border-radius: 7px; background: #fffefa; box-shadow: 0 0 0 1px #d9cfc4; transition: box-shadow .15s; }
.atgm-login__form .fi-input-wrp:focus-within { box-shadow: 0 0 0 2px #a27c47,0 0 0 4px #d6b7791c; }
.atgm-login__form .fi-input { min-height: 43px; padding-top: 9px; padding-bottom: 9px; color: #452735; font-size: 13px; }
.atgm-login__form .fi-input::placeholder { color: #9a8990; opacity: 1; }
.atgm-login__form .fi-input-wrp-prefix svg, .atgm-login__form .fi-input-wrp-suffix svg { color: #a18b76; width: 17px; height: 17px; }
.atgm-login__form .fi-checkbox-input { width: 15px; height: 15px; border-color: #cdbfae; border-radius: 4px; color: #660015; }
.atgm-login__form .fi-checkbox-input:focus-visible { outline: 2px solid #ab8b53; outline-offset: 3px; }
.atgm-login__form .fi-fo-checkbox label span { color: #76616d; font-size: 11px; }
.atgm-login__form .fi-btn { min-height: 44px; padding-top: 10px; padding-bottom: 10px; border-radius: 7px; border: 1px solid #660015; background: linear-gradient(110deg,#72192f,#510e26); color: #fff2e1; box-shadow: 0 5px 13px #66001513,inset 0 1px 0 #ffffff0a; font-size: 13px; font-weight: 500; }
.atgm-login__form .fi-btn:hover { background: #7d1a37; }
.atgm-login__form .fi-btn:disabled { cursor: wait; opacity: .65; }
.atgm-login__form .fi-fo-field-wrp-error-message { font-size: 11px; line-height: 1.7; }
.atgm-login__form .fi-invalid .fi-input-wrp, .atgm-login__form .fi-input-wrp.fi-invalid { box-shadow: 0 0 0 1px #c23a4d; }
.atgm-login__form .fi-invalid .fi-input-wrp:focus-within, .atgm-login__form .fi-input-wrp.fi-invalid:focus-within { box-shadow: 0 0 0 2px #c23a4d,0 0 0 4px #c23a4d15; }
.atgm-login__help { margin: 13px 0 0; padding-top: 12px; border-top: 1px solid #e8dfd4; color: #816572; text-align: center; font-size: 11px; line-height: 1.75; }
.atgm-access-footer { padding-top: 14px; text-align: center; color: #c097a4; font: 10px/1.5 Roboto,Arial,sans-serif; }
.atgm-access button:focus-visible { outline: 2px solid #d7af71; outline-offset: 4px; }
.atgm-access.is-paused .story-motion { animation-play-state: paused !important; }
@keyframes access-progress { to { transform: scaleX(1); } }
@media (max-height: 760px) and (min-width: 601px) {
 .atgm-access { padding-top: 14px; padding-bottom: 10px; }
 .atgm-access-main { width: min(100%,452px); }
 .atgm-access-brand { height: 57px; }
 .atgm-access-showcase { height: 184px; }
 .atgm-access-art { height: 134px; top: 2px; }
 .atgm-access-form { padding: 20px 30px 18px; }
 .atgm-login__form-heading { margin-bottom: 15px; }
 .atgm-access-footer { padding-top: 11px; }
}
@media (max-width: 600px) {
 .atgm-access { padding: 20px 16px 18px; }
 .atgm-access-main { width: min(100%,420px); }
 .atgm-access-card { border-radius: 14px; }
 .atgm-access-brand { height: 59px; padding: 0 23px; }
 .atgm-access-brand :is(img, .kpv-brand-logo) { width: 147px; }
 .atgm-access-showcase { height: 190px; }
 .atgm-access-art { height: 140px; top: 2px; left: 13px; right: 13px; }
 .atgm-access-form { padding: 21px 24px 20px; }
 .atgm-login__form-heading h1 { font-size: 24px; }
 .atgm-login__form-heading p { font-size: 11px; }
 .atgm-login__form .fi-input { font-size: 16px; min-height: 45px; }
 .atgm-login__form .fi-btn { min-height: 46px; }
}
@media (max-width: 360px) {
 .atgm-access { padding-left: 12px; padding-right: 12px; }
 .atgm-access-form { padding-left: 20px; padding-right: 20px; }
 .atgm-access-showcase { height: 177px; }
 .atgm-access-art { height: 127px; }
}
@media (prefers-reduced-motion: reduce) {
 .atgm-access .story-motion { animation: none !important; }
 .atgm-story-chapter { transition: none; }
 .atgm-access-motion { display: none; }
 .atgm-access-chapters .is-current .atgm-access-progress { transform: scaleX(1); }
}

/* A single card becomes two columns on desktop. */
@media (min-width: 900px) {
 .atgm-access { padding: 34px 28px 24px; }
 .atgm-access-main { width: min(100%,1040px); }
 .atgm-access-card { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); grid-template-rows: 78px minmax(480px,auto); min-height: 558px; border-radius: 20px; }
 .atgm-access-brand { grid-column: 1; grid-row: 1; height: 78px; padding: 0 35px; }
 .atgm-access-brand :is(img, .kpv-brand-logo) { width: 180px; }
 .atgm-access-brand > span { font-size: 12px; }
 .atgm-access-brand::after { left: 35px; right: 35px; }
 .atgm-access-showcase { grid-column: 1; grid-row: 2; height: auto; min-height: 480px; border-bottom: 0; }
 .atgm-access-art { top: 28px; left: 25px; right: 25px; height: 322px; }
 .atgm-story-chapter h2 { bottom: 77px; left: 28px; right: 28px; font-size: 21px; line-height: 1.6; color: #f4daba; }
 .atgm-access-chapters { bottom: 32px; gap: 10px; }
 .atgm-access-chapters button { width: 36px; height: 30px; }
 .atgm-access-chapters button::before, .atgm-access-progress { top: 14px; }
 .atgm-access-motion { top: 16px; right: 21px; width: 32px; height: 32px; }
 .atgm-access-form { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: center; padding: 48px 42px 43px; border-left: 1px solid #d1b68a66; }
 .atgm-login__form-heading { margin-bottom: 27px; }
 .atgm-login__form-heading h1 { font-size: 30px; }
 .atgm-login__form-heading p { font-size: 12px; margin-top: 7px; }
 .atgm-login__form { gap: 23px; }
 .atgm-login__form .fi-fo-component-ctn { gap: 21px; }
 .atgm-login__form .fi-fo-field-wrp-label { font-size: 13px; }
 .atgm-login__form .fi-input { min-height: 47px; font-size: 14px; }
 .atgm-login__form .fi-btn { min-height: 48px; font-size: 14px; }
 .atgm-login__help { margin-top: 23px; padding-top: 19px; }
 .atgm-access-footer { padding-top: 17px; }
}
@media (max-width: 600px) {
 .atgm-access-particle:nth-child(n+11) { display: none; }
 .atgm-access-glow { width: 150vw; height: 150vw; }
 .atgm-access-glow--gold { top: -12%; left: -70%; }
 .atgm-access-glow--wine { bottom: -15%; right: -70%; }
 .atgm-access-beams { opacity: .25; }
 .atgm-access-trails { opacity: .4; }
}
@media (prefers-reduced-motion: reduce) {
 .atgm-access .bg-motion, .atgm-access-card::before { animation: none !important; }
 .atgm-access-particles, .atgm-access-trails { display: none; }
}

/* Only the card determines centering; hidden modal portals occupy no grid row. */
.atgm-access { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.atgm-access-main { position: relative; flex: none; }
.atgm-access-footer { position: absolute; top: 100%; left: 0; right: 0; }
@media (min-width: 900px) { .atgm-access { padding: 42px 28px; } }

/* EasyHR reference proportions, adapted to the KPV palette and artwork. */
@media (min-width: 900px) {
 .atgm-access { padding: 40px 28px; }
 .atgm-access-main { width: min(1188px,100%); }
 .atgm-access-card { height: min(770px,calc(100svh - 96px)); min-height: 650px; grid-template-columns: minmax(0,1.03fr) minmax(0,1fr); grid-template-rows: 100px minmax(0,1fr); border-radius: 42px; box-shadow: 0 30px 75px #16041066,0 0 34px #d4a7620a,inset 0 0 30px #e2b66c08; }
 .atgm-access-brand { height: 100px; padding: 0 43px; }
 .atgm-access-brand :is(img, .kpv-brand-logo) { width: 209px; }
 .atgm-access-brand::after { left: 43px; right: 43px; }
 .atgm-access-showcase { min-height: 0; }
 .atgm-access-art { top: 34px; left: 18px; right: 18px; height: min(440px,calc(100% - 172px)); }
 .atgm-story-chapter h2 { bottom: 104px; font-size: 24px; }
 .atgm-access-chapters { bottom: 49px; }
 .atgm-access-chapters button { width: 42px; }
 .atgm-access-motion { top: 17px; right: 27px; width: 34px; height: 34px; }
 .atgm-access-form { padding: 58px 54px 50px; }
 .atgm-login__form-heading { margin-bottom: 30px; }
 .atgm-login__form-heading h1 { font-size: 38px; }
 .atgm-login__form-heading p { font-size: 14px; line-height: 1.8; }
 .atgm-login__form { gap: 25px; }
 .atgm-login__form .fi-fo-component-ctn { gap: 23px; }
 .atgm-login__form .fi-fo-field-wrp-label { font-size: 13px; }
 .atgm-login__form .fi-input-wrp { border-radius: 11px; }
 .atgm-login__form .fi-input { min-height: 58px; font-size: 15px; }
 .atgm-login__form .fi-input-wrp-prefix svg, .atgm-login__form .fi-input-wrp-suffix svg { width: 20px; height: 20px; }
 .atgm-login__form .fi-btn { min-height: 58px; border-radius: 12px; font-size: 15px; }
 .atgm-login__help { margin-top: 28px; padding-top: 22px; font-size: 12px; }
}
@media (min-width: 900px) and (max-width: 1100px) {
 .atgm-access-card { border-radius: 34px; }
 .atgm-access-brand { padding: 0 30px; }
 .atgm-access-brand :is(img, .kpv-brand-logo) { width: 180px; }
 .atgm-access-form { padding-left: 35px; padding-right: 35px; }
 .atgm-login__form-heading h1 { font-size: 34px; }
}
@media (min-width: 900px) and (max-height: 800px) {
 .atgm-access { padding: 32px 24px; }
 .atgm-access-card { height: calc(100svh - 80px); min-height: 600px; grid-template-rows: 84px minmax(0,1fr); border-radius: 34px; }
 .atgm-access-brand { height: 84px; }
 .atgm-access-brand :is(img, .kpv-brand-logo) { width: 190px; }
 .atgm-access-art { top: 22px; height: calc(100% - 158px); }
 .atgm-story-chapter h2 { bottom: 83px; font-size: 22px; }
 .atgm-access-chapters { bottom: 35px; }
 .atgm-access-form { padding-top: 34px; padding-bottom: 32px; }
 .atgm-login__form-heading { margin-bottom: 23px; }
 .atgm-login__form-heading h1 { font-size: 34px; }
 .atgm-login__form-heading p { font-size: 12px; }
 .atgm-login__form .fi-fo-component-ctn { gap: 19px; }
 .atgm-login__form .fi-input { min-height: 52px; }
 .atgm-login__form .fi-btn { min-height: 52px; }
 .atgm-login__help { margin-top: 23px; padding-top: 17px; font-size: 11px; }
}

@media (min-width: 900px) and (max-width: 1100px) and (orientation: portrait) {
 .atgm-access-main { width: min(690px,100%); }
 .atgm-access-card { display: block; height: auto; min-height: 0; border-radius: 32px; }
 .atgm-access-brand { height: 84px; }
 .atgm-access-showcase { height: 302px; }
 .atgm-access-art { top: 3px; height: 236px; }
 .atgm-story-chapter h2 { bottom: 34px; font-size: 18px; }
 .atgm-access-chapters { bottom: 3px; }
 .atgm-access-form { padding: 36px 52px; }
 .atgm-login__form-heading h1 { font-size: 32px; }
 .atgm-login__form .fi-input { font-size: 16px; }
}
