@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --jec-auth-bg: #e8eef8;
    --jec-auth-surface: #e8eef8;
    --jec-auth-ink: #141a33;
    --jec-auth-muted: #6b7594;
    --jec-auth-blue: #014e78;
    --jec-auth-blue-dark: #014e78;
    --jec-auth-blue-bright: #00a8e8;
    --jec-auth-green: #38b451;
    --jec-auth-danger: #d95c66;
    --jec-auth-shadow-dark: #c7d0dc;
    --jec-auth-shadow-light: rgba(255, 255, 255, .95);
}

body.jec-auth-page { min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--jec-auth-ink); background: var(--jec-auth-bg); font-family: 'Plus Jakarta Sans', 'Nunito', Arial, sans-serif; }
body.jec-auth-page *, body.jec-auth-page *::before, body.jec-auth-page *::after { box-sizing: border-box; }
.jec-auth-page .auth-scene { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 100vh; padding: 20px; isolation: isolate; }
.jec-auth-page .auth-scene::before { position: fixed; inset: 0; z-index: -2; background: radial-gradient(520px circle at var(--jec-auth-cx,50%) var(--jec-auth-cy,40%), rgba(0,168,232,.18), rgba(255,255,255,.35) 35%, transparent 65%), var(--jec-auth-bg); content: ''; transition: background .6s; }
.jec-auth-page .auth-cursor-light { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(520px circle at var(--jec-auth-cx,50%) var(--jec-auth-cy,40%), rgba(0,168,232,.18), rgba(255,255,255,.35) 35%, transparent 65%); transition: opacity .6s; }
.jec-auth-page .auth-orb { position: fixed; z-index: 0; border-radius: 50%; background: var(--jec-auth-bg); box-shadow: 20px 20px 50px var(--jec-auth-shadow-dark), -20px -20px 50px var(--jec-auth-shadow-light); pointer-events: none; }
.jec-auth-page .auth-orb--one { top: -120px; left: -140px; width: 340px; height: 340px; }
.jec-auth-page .auth-orb--two { top: 22%; right: -60px; width: 220px; height: 220px; }
.jec-auth-page .auth-orb--three { right: -120px; bottom: -140px; width: 300px; height: 300px; }
.jec-auth-page .auth-orb--four { bottom: -60px; left: -80px; width: 200px; height: 200px; }
.jec-auth-page .auth-card { position: relative; z-index: 1; width: min(100%, 420px); padding: 36px 28px; overflow: hidden; border: 0; border-radius: 36px; background: var(--jec-auth-bg); box-shadow: 9px 9px 20px var(--jec-auth-shadow-dark), -9px -9px 20px var(--jec-auth-shadow-light); animation: jec-auth-card-in .7s cubic-bezier(.22,1,.36,1) both; }
.jec-auth-page .auth-card::before { position: absolute; top: -130px; right: -100px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.65), transparent 68%); content: ''; pointer-events: none; }
.jec-auth-page .auth-logo-plate { position: relative; display: grid; place-items: center; width: min(220px, 100%); aspect-ratio: 220 / 140; margin: 0 auto 32px; padding: 26px 28px; border-radius: 34px; background: linear-gradient(145deg, #f4f8fd, #dfe6f2); box-shadow: 14px 16px 32px #b9c4da, -12px -12px 28px #fff, inset 1px 1px 0 rgba(255,255,255,.9), inset -2px -3px 6px rgba(1,78,120,.08); transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2,.8,.2,1); animation: jec-auth-float 5s ease-in-out infinite; }
.jec-auth-page .auth-logo-plate::after { position: absolute; inset: 0; border: 1px solid rgba(8,125,181,.24); border-radius: inherit; content: ''; pointer-events: none; }
.jec-auth-page .auth-logo-sheen { position: absolute; inset: -40%; background: radial-gradient(circle at var(--jec-auth-mx,30%) var(--jec-auth-my,20%), rgba(255,255,255,.85), transparent 40%); pointer-events: none; transition: background .2s; }
.jec-auth-page .auth-logo-plate img { position: relative; z-index: 1; display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(1,59,111,.25)); }
.jec-auth-page .auth-logo-holder { position: relative; z-index: 1; transform: translateZ(40px); }
.jec-auth-page .auth-pupil { position: absolute; left: 26.4%; top: 31%; width: 13.5%; aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%; box-shadow: 0 0 18px 4px rgba(58,181,74,.55); animation: jec-auth-glow 2.8s ease-in-out infinite; pointer-events: none; mix-blend-mode: multiply; }
.jec-auth-page .auth-eyebrow { margin: 0 0 8px; color: var(--jec-auth-blue); font-size: 11px; font-weight: 800; letter-spacing: .22em; text-align: center; text-transform: uppercase; }
.jec-auth-page .auth-title { margin: 0; color: var(--jec-auth-ink); font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1.2; text-align: center; }
.jec-auth-page .auth-subtitle { margin: 4px 0 32px; color: var(--jec-auth-muted); font-size: 13px; letter-spacing: .25em; text-align: center; }
.jec-auth-page .auth-description { margin: 10px auto 27px; max-width: 330px; color: var(--jec-auth-muted); font-size: 13px; line-height: 1.7; text-align: center; }
.jec-auth-page .auth-form-group { margin-bottom: 20px; }
.jec-auth-page .auth-label { display: block; margin: 0 0 8px 4px; color: var(--jec-auth-ink); font-size: 12px; font-weight: 700; }
.jec-auth-page .auth-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.jec-auth-page .auth-field { position: relative; display: flex; align-items: center; height: 58px; gap: 12px; padding: 0 18px; border: 0; border-radius: 18px; background: var(--jec-auth-surface); box-shadow: inset 6px 6px 12px var(--jec-auth-shadow-dark), inset -6px -6px 12px var(--jec-auth-shadow-light); transition: box-shadow .25s ease, transform .25s ease; }
.jec-auth-page .auth-field:focus-within { box-shadow: inset 4px 4px 9px var(--jec-auth-shadow-dark), inset -4px -4px 9px var(--jec-auth-shadow-light), 0 0 0 2px rgba(8,125,181,.18); transform: translateY(-1px); }
.jec-auth-page .auth-field .iconify { flex: 0 0 auto; color: #5a6488; font-size: 20px; }
.jec-auth-page .auth-field input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--jec-auth-ink); background: transparent; font: inherit; font-size: 15px; }
.jec-auth-page .auth-field input::placeholder { color: #8a93ad; }
.jec-auth-page .auth-password-toggle { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; margin-left: 8px; padding: 0; border: 0; border-radius: 10px; color: var(--jec-auth-muted); background: transparent; cursor: pointer; }
.jec-auth-page .auth-password-toggle:hover, .jec-auth-page .auth-password-toggle:focus-visible { color: var(--jec-auth-blue); outline: 0; background: rgba(8,125,181,.08); }
.jec-auth-page .auth-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 24px; color: var(--jec-auth-muted); font-size: 15px; }
.jec-auth-page .auth-check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.jec-auth-page .auth-check input { width: 15px; height: 15px; accent-color: var(--jec-auth-blue-dark); }
.jec-auth-page .auth-link { color: var(--jec-auth-blue-dark); font-weight: 700; text-decoration: none; }
.jec-auth-page .auth-link:hover, .jec-auth-page .auth-link:focus-visible { color: var(--jec-auth-blue); text-decoration: underline; }
.jec-auth-page .auth-button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 58px; gap: 12px; overflow: hidden; padding: 0 20px; border: 0; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--jec-auth-blue-bright), var(--jec-auth-blue)); box-shadow: 8px 10px 22px rgba(47,91,255,.35), -6px -6px 16px var(--jec-auth-shadow-light); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; transition: transform .25s cubic-bezier(.3,1.5,.5,1), box-shadow .25s ease; }
.jec-auth-page .auth-button::after { position: absolute; top: 0; left: -60%; width: 42%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); content: ''; transform: skewX(-20deg); animation: jec-auth-shine 3.6s infinite; pointer-events: none; }
.jec-auth-page .auth-button:hover { transform: translateY(-3px); box-shadow: 12px 16px 28px rgba(7,82,125,.34), -5px -5px 12px rgba(255,255,255,.9); }
.jec-auth-page .auth-button:active { transform: translateY(1px) scale(.98); box-shadow: inset 4px 4px 10px rgba(0,0,0,.22); }
.jec-auth-page .auth-button:disabled { cursor: wait; opacity: .8; }
.jec-auth-page .auth-arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 18px; transition: transform .3s ease; }
.jec-auth-page .auth-button:hover .auth-arrow { transform: translateX(4px); }
.jec-auth-page .auth-spinner { display: inline-block; width: 19px; height: 19px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: jec-auth-spin .7s linear infinite; }
.jec-auth-page .auth-footer { margin: 32px 0 0; color: var(--jec-auth-muted); font-size: 12px; line-height: 1.6; text-align: center; }
.jec-auth-page .auth-secure-pill { display: inline-flex; align-items: center; gap: 7px; margin: 0 auto 22px; padding: 8px 13px; border-radius: 999px; color: var(--jec-auth-blue-dark); background: rgba(8,125,181,.08); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.jec-auth-page .auth-secure-pill .iconify { font-size: 15px; }
.jec-auth-page .auth-account { display: flex; align-items: center; gap: 12px; min-height: 70px; margin: 0 auto 24px; padding: 12px 14px; border-radius: 16px; color: var(--jec-auth-muted); background: var(--jec-auth-surface); box-shadow: inset 4px 4px 9px var(--jec-auth-shadow-dark), inset -4px -4px 9px var(--jec-auth-shadow-light); font-size: 11px; }
.jec-auth-page .auth-account .iconify { flex: 0 0 auto; color: var(--jec-auth-blue); font-size: 21px; }
.jec-auth-page .auth-account strong { display: block; overflow: hidden; color: var(--jec-auth-ink); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.jec-auth-page .otp-stage { position: relative; min-height: 90px; margin: 0 0 14px; }
.jec-auth-page .otp-slots { display: flex; justify-content: center; gap: 8px; }
.jec-auth-page .otp-slot { position: relative; display: grid; place-items: center; width: clamp(38px, 11vw, 46px); aspect-ratio: 46 / 58; border-radius: 14px; color: var(--jec-auth-blue-dark); background: var(--jec-auth-surface); box-shadow: inset 5px 5px 10px var(--jec-auth-shadow-dark), inset -5px -5px 10px var(--jec-auth-shadow-light); font-size: 21px; font-weight: 800; transition: box-shadow .22s ease, color .22s ease, transform .28s cubic-bezier(.3,1.5,.5,1); }
.jec-auth-page .otp-slot.is-active { box-shadow: inset 4px 4px 8px var(--jec-auth-shadow-dark), inset -4px -4px 8px var(--jec-auth-shadow-light), 0 0 0 2px rgba(8,125,181,.65); }
.jec-auth-page .otp-slot.is-filled { animation: jec-auth-otp-drop .45s cubic-bezier(.3,1.5,.5,1) both; }
.jec-auth-page .otp-slot.is-filled::after { position: absolute; right: 8px; bottom: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--jec-auth-green); box-shadow: 0 0 0 3px rgba(56,180,81,.12); content: ''; }
.jec-auth-page .otp-input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; cursor: text; }
.jec-auth-page .otp-input:focus + .otp-slots .otp-slot.is-active::before { position: absolute; top: 14px; width: 2px; height: 28px; border-radius: 2px; background: var(--jec-auth-blue); animation: jec-auth-blink 1s infinite; content: ''; }
.jec-auth-page .otp-hint { min-height: 22px; margin: 0 0 19px; color: var(--jec-auth-muted); font-size: 11px; line-height: 1.6; text-align: center; }
.jec-auth-page .otp-hint.is-error { color: var(--jec-auth-danger); font-weight: 700; }
.jec-auth-page .otp-error { color: var(--jec-auth-danger); font-weight: 700; }
.jec-auth-page .otp-form.is-shaking .otp-slots { animation: jec-auth-shake .45s ease; }
.jec-auth-page .auth-verifying { display: none; min-height: 300px; text-align: center; }
.jec-auth-page .auth-card[data-auth-state='verifying'] .auth-otp-content { display: none; }
.jec-auth-page .auth-card[data-auth-state='verifying'] .auth-verifying { display: block; animation: jec-auth-card-in .45s ease both; }
.jec-auth-page .auth-verifying[data-verification-state='success'] .verify-otp-cluster,
.jec-auth-page .auth-verifying[data-verification-state='success'] .verify-ring,
.jec-auth-page .auth-verifying[data-verification-state='success'] .verify-checking-copy { display: none; }
.jec-auth-page .auth-verifying[data-verification-state='success'] .verify-check-result { display: block; animation: jec-auth-card-in .45s ease both; }
.jec-auth-page .auth-verifying h2 { margin: 20px 0 8px; color: var(--jec-auth-ink); font-size: 23px; font-weight: 800; }
.jec-auth-page .auth-verifying p { margin: 0; color: var(--jec-auth-muted); font-size: 12px; line-height: 1.6; }
.jec-auth-page .verify-otp-cluster { position: relative; width: min(100%, 250px); height: 112px; margin: 24px auto 0; }
.jec-auth-page .verify-otp-digit { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 46px; height: 58px; border-radius: 14px; color: var(--jec-auth-blue-dark); background: var(--jec-auth-surface); box-shadow: 6px 6px 14px var(--jec-auth-shadow-dark), -6px -6px 14px var(--jec-auth-shadow-light); font-size: 23px; font-weight: 800; opacity: 0; animation: jec-auth-otp-scatter 1.05s cubic-bezier(.2,.8,.2,1) forwards; }
.jec-auth-page .verify-otp-digit:nth-child(1) { --jec-auth-x: -92px; --jec-auth-y: -17px; --jec-auth-r: -31deg; animation-delay: .02s; }
.jec-auth-page .verify-otp-digit:nth-child(2) { --jec-auth-x: -45px; --jec-auth-y: 22px; --jec-auth-r: 22deg; animation-delay: .08s; }
.jec-auth-page .verify-otp-digit:nth-child(3) { --jec-auth-x: 2px; --jec-auth-y: -24px; --jec-auth-r: -15deg; animation-delay: .14s; }
.jec-auth-page .verify-otp-digit:nth-child(4) { --jec-auth-x: 46px; --jec-auth-y: 18px; --jec-auth-r: 28deg; animation-delay: .2s; }
.jec-auth-page .verify-otp-digit:nth-child(5) { --jec-auth-x: 89px; --jec-auth-y: -20px; --jec-auth-r: -24deg; animation-delay: .26s; }
.jec-auth-page .verify-otp-digit:nth-child(6) { --jec-auth-x: 118px; --jec-auth-y: 25px; --jec-auth-r: 35deg; animation-delay: .32s; }
.jec-auth-page .verify-check-result { display: none; min-height: 270px; padding-top: 22px; }
.jec-auth-page .verify-success-mark { display: grid; place-items: center; width: 112px; height: 112px; margin: 0 auto 24px; border-radius: 50%; background: linear-gradient(135deg, #4fd6a3, #22b07d); box-shadow: 10px 12px 24px rgba(34,176,125,.28), -8px -8px 20px var(--jec-auth-shadow-light); animation: jec-auth-success-pop .6s cubic-bezier(.3,1.6,.5,1) both, jec-auth-success-pulse 1.6s .6s infinite; }
.jec-auth-page .verify-success-mark svg { width: 58px; height: 58px; }
.jec-auth-page .verify-success-mark path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: jec-auth-check-draw .55s .25s ease forwards; }
.jec-auth-page .verify-ring { position: relative; display: grid; place-items: center; width: 138px; height: 138px; margin: 42px auto 27px; border-radius: 50%; background: conic-gradient(var(--jec-auth-blue) var(--jec-auth-progress,18%), #d3dce7 0); box-shadow: 10px 12px 24px var(--jec-auth-shadow-dark), -8px -8px 20px var(--jec-auth-shadow-light); animation: jec-auth-progress 1.1s ease-in-out infinite; }
.jec-auth-page .verify-ring::before { position: absolute; inset: 10px; border-radius: 50%; background: var(--jec-auth-surface); box-shadow: inset 5px 5px 10px var(--jec-auth-shadow-dark), inset -5px -5px 10px var(--jec-auth-shadow-light); content: ''; }
.jec-auth-page .verify-ring span { position: relative; z-index: 1; color: var(--jec-auth-blue-dark); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.jec-auth-page .auth-back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--jec-auth-muted); font-size: 11px; font-weight: 700; text-decoration: none; }
.jec-auth-page .auth-back-link:hover, .jec-auth-page .auth-back-link:focus-visible { color: var(--jec-auth-blue-dark); text-decoration: underline; }
@keyframes jec-auth-card-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes jec-auth-float { 50% { transform: translateY(-6px); } }
@keyframes jec-auth-glow { 50% { box-shadow: 0 0 28px 9px rgba(58,181,74,.75); } }
@keyframes jec-auth-otp-drop { 0% { opacity: 0; transform: translateY(-15px) rotate(-14deg) scale(.55); } 65% { transform: translateY(3px) rotate(4deg) scale(1.08); } 100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); } }
@keyframes jec-auth-otp-scatter { 0% { opacity: 0; transform: translate(-50%,-50%) rotate(0deg) scale(.55); } 28% { opacity: 1; transform: translate(-50%,-50%) rotate(0deg) scale(1.08); } 100% { opacity: .88; transform: translate(calc(-50% + var(--jec-auth-x)), calc(-50% + var(--jec-auth-y))) rotate(var(--jec-auth-r)) scale(.9); } }
@keyframes jec-auth-success-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes jec-auth-success-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,176,125,.4), 10px 12px 24px rgba(34,176,125,.28), -8px -8px 20px var(--jec-auth-shadow-light); } 100% { box-shadow: 0 0 0 26px rgba(34,176,125,0), 10px 12px 24px rgba(34,176,125,.28), -8px -8px 20px var(--jec-auth-shadow-light); } }
@keyframes jec-auth-check-draw { to { stroke-dashoffset: 0; } }
@keyframes jec-auth-blink { 50% { opacity: 0; } }
@keyframes jec-auth-shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
@keyframes jec-auth-progress { 0% { --jec-auth-progress: 13%; transform: rotate(0); } 50% { --jec-auth-progress: 78%; transform: rotate(90deg); } 100% { --jec-auth-progress: 13%; transform: rotate(360deg); } }
@keyframes jec-auth-spin { to { transform: rotate(360deg); } }
@keyframes jec-auth-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@media (max-width: 420px) { .jec-auth-page .auth-scene { padding: 20px 12px; } .jec-auth-page .auth-card { padding: 30px 20px 26px; border-radius: 26px; } .jec-auth-page .otp-slots { gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .jec-auth-page *, .jec-auth-page *::before, .jec-auth-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
