@font-face {
  font-family: "DAM Kathivalhi";
  src: url("../fonts/DAM_Kathivalhi.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
:root { --primary: #0066cc; --ocean: #087fba; --turquoise: #009b9d; --ink: #153d57; --muted: #527086; --line: #d4e8f1; }
body { font-family: Faruma,"MV Waheed",sans-serif; background: #f5fafc; line-height: 1.9; text-align: start; }
body::before { background: url("body-contours.svg?v=2") center / 640px 480px repeat; opacity: .05; height: 100%; mask-image: none; -webkit-mask-image: none; }
.portal-welcome { background: linear-gradient(145deg,#064b92,#087fba 58%,#009b9d); border-radius: 28px; }
.portal-welcome::before { background: url("body-contours.svg?v=2") center / 640px 480px repeat; opacity: .15; mask-image: none; -webkit-mask-image: none; }
.portal-welcome::after { display: none; }
.portal-brand { font-weight: 400; }
.portal-brand small { letter-spacing: 0; color: #d9f0fa; font-size: .8rem; }
.portal-eyebrow { letter-spacing: 0; color: #d9f0fa; font-size: .9rem; }
.portal-eyebrow i { background: #9ce9e0; }
.portal-welcome h2,.otp-copy h1,.otp-verify-heading h2 { font-family: "DAM Kathivalhi",Faruma,sans-serif; font-weight: 400; font-synthesis: none; letter-spacing: 0; line-height: 1.7; }
.portal-welcome h2 { font-size: clamp(2.4rem,4vw,3.6rem); }
.portal-welcome-footer { color: #d9f0fa; font-size: .9rem; max-width: 420px; }
.portal-signin { padding-top: 80px; }
.portal-back { right: auto; inset-inline-start: 28px; font-size: .85rem; color: #527086; }
.portal-back span { transform: rotate(180deg); }
.otp-panel { width: min(480px,100%); border-color: #d4e8f1; border-radius: 24px; padding: 36px; box-shadow: 0 12px 40px #064b9210; }
.login-brand-logo { margin-inline: 0; border-color: #dcebf3; }
.otp-copy p { font-size: .85rem; letter-spacing: 0; }
.otp-copy h1 { font-size: clamp(1.8rem,3vw,2.4rem); }
.otp-copy > span { font-size: .9rem; line-height: 2; }
.login-method-heading strong { font-size: .95rem; font-weight: 400; }
.login-method-heading small { font-size: .8rem; line-height: 1.9; }
.login-method-icon { background: #eaf7fc; color: #00839c; }
label { font-size: .9rem; font-weight: 400; }
.phone-field { min-height: 58px; border-radius: 12px; }
.phone-field,.otp-code-input { font-family: system-ui,sans-serif; }
.phone-field:focus-within { box-shadow: 0 0 0 3px #008d9e18; border-color: #008d9e; }
button { font-weight: 400; font-size: .95rem; border-radius: 12px; background: linear-gradient(110deg,#0066cc,#008d9e); box-shadow: none; }
button:hover:not(:disabled) { background: linear-gradient(110deg,#0056ad,#007a88); }
.otp-resend-button { color: #0066cc; background: transparent; }
.otp-resend-button:hover:not(:disabled) { background: #eef7fc; }
.efaas-login-button { direction: rtl; font-family: Faruma,"MV Waheed",sans-serif; font-size: .95rem; gap: 12px; border-radius: 12px; }
.efaas-login-button svg { margin: 0; }
.login-alternative { font-size: .85rem; }
.portal-secure { font-size: .8rem; color: #527086; text-align: center; }
.otp-verify-heading p,.otp-expiry-row,.otp-resend { font-size: .85rem; line-height: 1.9; }
.otp-status,.otp-match { border-color: #c7e8e8; border-radius: 12px; background: #eefaf8; }
.otp-panel .login-brand-logo { margin: 0 auto 20px; }
.otp-panel .otp-copy { text-align: center; margin-bottom: 20px; }
.otp-panel .login-method-heading { justify-content: center; text-align: center; }
.otp-panel .phone-label > span { text-align: center; }
.otp-verify-heading h2 { display: none; }
.otp-digits { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.otp-digits input { min-width: 0; height: 58px; padding: 0; text-align: center; font: 600 1.5rem system-ui,sans-serif; border-radius: 12px; background: #f8fcfe; }
.otp-code-label { display: grid; gap: 12px; }
.otp-retry { display: grid; gap: 10px; }
.otp-working { text-align: center; margin: 0; color: #0066cc; }
.portal-welcome-copy { width: 100%; max-width: none; padding: 40px 0; text-align: center; }
.portal-welcome h2 { margin: 18px 0 24px; font-size: clamp(2.2rem,3.2vw,3rem); }
.portal-welcome-footer { align-self: center; text-align: center; }
.submission-illustration { width: min(100%,460px); margin: 28px auto 0; text-align: center; }
.submission-illustration svg { display: block; width: 100%; max-width: 460px; margin: auto; overflow: visible; }
.submission-illustration p { margin: 8px 0 0; color: #d9f0fa; font-size: .85rem; }
.submission-document { animation: submission-document 7s ease-in-out infinite; }
.submission-field { stroke-dasharray: 108; animation: submission-field 7s ease-in-out infinite; }
.submission-field.field-two { animation-delay: .2s; }
.submission-field.field-three { animation-delay: .4s; }
.submission-cursor { animation: submission-cursor 7s ease-in-out infinite; }
.submission-upload { opacity: 0; animation: submission-upload 7s ease-in-out infinite; }
.submission-success { opacity: 0; transform-origin: 230px 139px; animation: submission-success 7s ease-in-out infinite; }
@keyframes submission-field { 0%,5% { stroke-dashoffset: 108; } 30%,100% { stroke-dashoffset: 0; } }
@keyframes submission-document { 0%,45%,95%,100% { opacity: 1; } 55%,88% { opacity: .12; } }
@keyframes submission-cursor { 0%,28% { opacity: 0; transform: translate(35px,25px); } 38%,45% { opacity: 1; transform: translate(0,0); } 52%,100% { opacity: 0; transform: translate(0,0); } }
@keyframes submission-upload { 0%,46%,68%,100% { opacity: 0; transform: translateY(10px); } 53%,60% { opacity: 1; transform: translateY(-8px); } }
@keyframes submission-success { 0%,64%,96%,100% { opacity: 0; transform: scale(.8); } 72%,88% { opacity: 1; transform: scale(1); } }
@media(prefers-reduced-motion:reduce) {
  .submission-illustration svg * { animation: none; }
  .submission-cursor,.submission-upload { display: none; }
  .submission-success { opacity: 1; }
  .submission-document { opacity: .12; }
}
@media(max-width:680px) {
  .portal-welcome { padding: 26px 24px; border-radius: 0 0 24px 24px; }
  .portal-welcome-copy { padding: 16px 0 0; }
  .portal-welcome h2 { font-size: 2rem; margin: 10px 0; }
  .portal-eyebrow { font-size: .8rem; }
  .submission-illustration { display: none; }
  .portal-signin { padding: 58px 16px 24px; }
  .otp-panel { padding: 26px 22px; }
  .portal-back { top: 16px; inset-inline-start: 24px; }
}
