@font-face{font-family:'Phetsarath OT';src:url('/assets/phetsarath-ot.woff2') format('woff2'),url('/assets/phetsarath-ot.woff') format('woff');font-style:normal;font-weight:400;font-display:swap;unicode-range:U+0E80-0EFF}
@font-face{font-family:'ICOM Sans';src:url('/assets/noto-sans-bold.ttf') format('truetype');font-weight:600 900;font-display:swap}
@font-face{font-family:'ICOM Sans';src:url('/assets/noto-sans.ttf') format('truetype');font-weight:100 500;font-display:swap}
@font-face{font-family:'Noto Sans Lao';src:url('/assets/noto-lao.ttf') format('truetype');font-display:swap;unicode-range:U+0E80-0EFF}@font-face{font-family:'Noto Sans Thai';src:url('/assets/noto-thai.ttf') format('truetype');font-display:swap;unicode-range:U+0E00-0E7F}

/* Owner-supplied login theme adapted for ICOM Finance. */
:root {
  color-scheme: light;
  --primary: #1666ff;
  --accent: #8563ff;
  --ink: #101a3e;
  --muted: #7a84a5;
  --line: #dce1f2;
  --surface: #ffffff;
  --radius: 15px;
  --font: "Phetsarath OT", "ICOM Sans", "Noto Sans Thai", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: 36px clamp(18px, 3.23vw, 64px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 4% 85%, #a9c5ff 0, transparent 52%),
    radial-gradient(ellipse at 91% 8%, #eee4ff 0, transparent 56%),
    linear-gradient(120deg, #dce9ff, #e5e5ff 65%, #eee9ff);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}
button, input, select { font: inherit; }
button, select, input[type="checkbox"] { cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
button, a, input, select { touch-action: manipulation; }
button { color: inherit; }
button:disabled { cursor: wait; }
button, input, select { outline-offset: 4px; }
:focus-visible { outline: 3px solid #2763f2; }
[hidden] { display: none !important; }
svg { display: block; flex-shrink: 0; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.auth-shell {
  width: min(1568px, 100%);
  min-height: 864px;
  display: grid;
  grid-template-columns: minmax(0, 1.575fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 23px;
  background: var(--surface);
  box-shadow: 0 26px 72px -25px rgba(61,90,203,.32), 0 1px 0 rgba(255,255,255,.7) inset;
}
/* Left panel: code-native marketing content over the original decorative artwork. */
.story-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 43px 48px 125px;
  color: white;
  background:
    radial-gradient(ellipse 88% 73% at 100% 0%, #d7ccff 0, rgba(177,183,255,.5) 43%, transparent 80%),
    radial-gradient(ellipse 95% 67% at 0% 0%, #689dfa 0, rgba(86,142,237,.5) 37%, transparent 79%),
    radial-gradient(ellipse 85% 83% at 100% 104%, #8b7cfc 0, rgba(114,96,237,.65) 47%, transparent 80%),
    linear-gradient(145deg, #315dba, #193b89 48%, #222873);
}
.story-orb { position: absolute; z-index: -1; width: 650px; height: 650px; left: -200px; top: -484px; border-radius: 50%; background: radial-gradient(circle at 75% 75%, rgba(140,208,255,.1), rgba(255,255,255,.03) 58%, rgba(163,205,255,.15) 59%, transparent 70%); box-shadow: 0 0 45px rgba(105,183,255,.11); }
.story-rings { position: absolute; z-index: -1; width: 770px; height: 770px; border-radius: 50%; left: 230px; bottom: -637px; border: 75px solid rgba(162,143,255,.09); box-shadow: 0 0 0 22px rgba(185,164,255,.05), 0 0 0 45px rgba(176,162,255,.04); transform: rotate(-32deg); }
.hero-orbit { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(215,230,255,.7); stroke-width: 1.5; stroke-dasharray: 2.5 6.5; stroke-linecap: round; pointer-events: none; }
.hero-art { position: absolute; z-index: -1; width: 63.3%; max-width: 607px; height: auto; top: 65px; right: 7px; user-select: none; pointer-events: none; }
.story-brand { display: flex; align-items: center; gap: 15px; }
.brand-logo { width: 48px; height: 48px; }
.brand-name { display: block; font-size: 26px; font-weight: 750; line-height: 1.3; letter-spacing: -.8px; }
.brand-tagline { margin: 2px 0 0; font-size: 11px; line-height: 1.2; letter-spacing: .1px; color: #dbe7ff; }
.story-copy { position: relative; margin-top: 79px; max-width: 485px; }
.story-copy h2 { margin: 0; font-size: clamp(31px, 2.72vw, 46px); line-height: 1.5; font-weight: 600; letter-spacing: -.4px; text-shadow: 0 3px 18px rgba(15,42,103,.12); }
.story-description { margin: 13px 0 0; font-size: clamp(16px, 1.3vw, 21px); line-height: 1.7; color: #dde7ff; }
.features { position: relative; display: grid; gap: 36px; margin-top: 42px; max-width: 400px; }
.feature { display: flex; align-items: center; gap: 24px; }
.feature-icon { display: grid; flex: 0 0 58px; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #edf3ff; background: linear-gradient(140deg, rgba(54,116,231,.57), rgba(106,108,255,.29)); box-shadow: 0 7px 24px rgba(23,40,110,.06); }
.feature-icon .icon { width: 27px; height: 27px; }
.feature h3 { margin: 0; font-size: 19px; line-height: 1.6; font-weight: 600; }
.feature p { margin: 2px 0 0; font-size: 17px; color: #c9d6ff; line-height: 1.7; }
.story-footer { position: absolute; bottom: 44px; left: 48px; margin: 0; color: #c4d2ff; font-size: 12px; line-height: 1.65; letter-spacing: 4px; }
.story-footer span { display: block; width: 27px; height: 2px; background: #e3eaff; margin-bottom: 12px; border-radius: 2px; }
/* Right panel */
.login-panel { position: relative; display: flex; align-items: center; padding: 57px clamp(28px, 3.2vw, 54px) 35px; background: linear-gradient(150deg, #fff 28%, #fcfcff 70%, #f5f6ff); }
.language-control { position: absolute; top: 27px; right: 31px; display: flex; align-items: center; gap: 8px; color: #38456e; }
.language-control .icon { width: 20px; height: 20px; }
.language-control .chevron { width: 16px; height: 16px; margin-left: -26px; pointer-events: none; }
.language-control select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font-family: var(--font); font-size: 13px; font-weight: 600; padding: 9px 25px 9px 2px; border-radius: 5px; }
.login-content { width: 100%; }
.login-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.login-brand .brand-logo { width: 39px; height: 39px; }
.login-brand .brand-name { font-size: 23px; margin-top: 3px; }
.login-brand p { margin: 5px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.form-heading { text-align: center; margin: 42px 0 33px; }
.form-heading h1 { margin: 0; font-size: clamp(34px, 2.9vw, 48px); line-height: 1.4; font-weight: 700; letter-spacing: -1.2px; }
.form-heading p { margin: 8px auto 0; color: var(--muted); font-size: 16px; line-height: 1.8; text-wrap: balance; }
.heart { display: inline-block; width: 19px; height: 19px; color: #2f78ff; vertical-align: -3px; margin-left: 3px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-field + .form-field { margin-top: 22px; }
.form-field > label { display: block; font-size: 15px; line-height: 1.6; font-weight: 650; margin-bottom: 7px; }
.input-wrap { position: relative; }
.input-icon { position: absolute; top: 50%; left: 17px; transform: translateY(-50%); color: #51618a; pointer-events: none; width: 22px; height: 22px; }
.input-wrap input { width: 100%; height: 56px; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0 17px 0 55px; background: rgba(255,255,255,.82); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: normal; box-shadow: 0 3px 8px rgba(36,63,129,.035); transition: border-color .18s, box-shadow .18s, background .18s; }
.input-wrap input::placeholder { color: #8b95b3; opacity: 1; }
.input-wrap input:hover { border-color: #bdc8ec; }
.input-wrap input:focus { outline: none; border-color: #628bfa; box-shadow: 0 0 0 4px rgba(61,115,249,.10); background: white; }
.input-wrap input[aria-invalid="true"] { border-color: #d24c68; }
.input-wrap input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(210,76,104,.09); }
.password-field input { padding-right: 55px; }
.password-toggle { position: absolute; right: 5px; top: 6px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #596790; transition: background .18s, color .18s; }
.password-toggle:hover { background: #f0f3fe; color: var(--primary); }
.password-toggle .icon { width: 22px; height: 22px; }
.field-error, .caps-lock { margin: 7px 0 0; font-size: 13px; line-height: 1.65; color: #b43150; }
.caps-lock { color: #946300; }
.form-options { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px 12px; margin: 13px 0 23px; font-size: 15px; }
.remember-label { display: flex; align-items: center; gap: 10px; min-height: 32px; cursor: pointer; user-select: none; }
.remember-label input { accent-color: var(--primary); width: 20px; height: 20px; margin: 0; }
.text-link { display: inline; border: 0; padding: 5px 0; font-size: inherit; line-height: inherit; font-weight: 500; background: none; color: #3068fa; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { color: #684add; text-decoration: underline; }
.login-button { width: 100%; height: 60px; display: flex; align-items: center; justify-content: center; gap: 19px; border: 0; border-radius: var(--radius); color: white; font-size: 17px; font-weight: 600; background: linear-gradient(105deg, var(--primary), #3459fb 56%, var(--accent)); box-shadow: 0 7px 19px rgba(60,102,247,.25), 0 1px 0 rgba(255,255,255,.15) inset; transition: transform .18s, box-shadow .18s, filter .18s; }
.login-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 23px rgba(60,102,247,.32); filter: brightness(1.045); }
.login-button:active:not(:disabled) { transform: translateY(0); }
.login-button:disabled { opacity: .8; }
.login-button .icon { width: 23px; height: 23px; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice, .noscript-notice { margin-top: 17px; border-radius: 12px; border: 1px solid #d5dffd; background: #f1f5ff; color: #344e88; padding: 13px 15px; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.notice[data-kind="error"] { background: #fff3f5; border-color: #f3ced6; color: #a7324c; }
.notice[data-kind="success"] { background: #eef9f4; border-color: #c8ead8; color: #206b4b; }
.divider { display: flex; align-items: center; gap: 21px; color: var(--muted); margin: 21px 0 18px; font-size: 15px; }
.divider::before, .divider::after { content: ""; height: 1px; background: #dce1f1; flex: 1; }
.social-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.social-button { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 56px; padding: 10px 9px; border: 1.5px solid #d8dff2; border-radius: var(--radius); font-size: 14px; font-weight: 500; background: rgba(255,255,255,.75); box-shadow: 0 3px 8px rgba(36,63,129,.04); transition: border-color .18s, background .18s, transform .18s; }
.social-button:hover { border-color: #aabbea; background: white; transform: translateY(-1px); }
.social-logo { width: 24px; height: 24px; }
.microsoft { width: 22px; height: 22px; }
.signup-line { margin: 26px 0 0; text-align: center; font-size: 16px; }
.signup-line .text-link { margin-left: 5px; }
/* The English translation keeps the same hierarchy without forcing long words into Lao widths. */
html[lang="en"] .story-copy h2 { font-size: clamp(31px, 2.6vw, 43px); line-height: 1.3; max-width: 410px; letter-spacing: -1.8px; }
html[lang="en"] .story-description { max-width: 325px; font-size: 17px; }
html[lang="en"] .story-description br { display: none; }
html[lang="en"] .feature h3 { font-size: 16px; }
html[lang="en"] .feature p { font-size: 13px; }
html[lang="en"] .form-heading h1 { font-size: 45px; letter-spacing: -2px; }
html[lang="en"] .form-heading p { font-size: 14px; }
html[lang="en"] .social-button { font-size: 11px; gap: 8px; }
/* Laptop and tablet */
@media (max-width: 1390px) and (min-width: 1101px) {
  .auth-shell { min-height: 790px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .story-panel { padding: 38px 38px 120px; }
  .story-copy { margin-top: 63px; }
  .story-copy h2 { font-size: 34px; }
  .story-description { font-size: 16px; }
  .features { gap: 29px; margin-top: 36px; }
  .feature { gap: 17px; }
  .feature h3 { font-size: 15px; }
  .feature p { font-size: 13px; }
  .feature-icon { flex-basis: 50px; width: 50px; height: 50px; }
  .hero-art { width: 57%; top: 200px; right: -22px; }
  .hero-orbit { opacity: .4; }
  .story-footer { left: 38px; bottom: 35px; }
  .login-panel { padding: 74px 30px 33px; }
  .form-heading { margin: 31px 0 26px; }
  .form-heading h1 { font-size: 36px; }
  .form-heading p { font-size: 14px; }
  .social-buttons { gap: 12px; }
  .social-button { font-size: 12px; gap: 8px; }
  .social-logo { width: 21px; height: 21px; }
}
@media (max-width: 1100px) {
  body { padding: 28px; }
  .auth-shell { width: min(660px,100%); min-height: 0; grid-template-columns: minmax(0,1fr); border-radius: 24px; }
  .story-panel { display: none; }
  .login-panel { padding: 80px clamp(26px,7vw,72px) 42px; }
  .language-control { top: 20px; right: 25px; }
  .form-heading { margin: 32px 0 30px; }
  .form-heading h1 { font-size: 41px; }
  .form-heading p { font-size: 15px; }
}
@media (max-width: 520px) {
  body { padding: 15px; align-items: center; }
  .auth-shell { border-radius: 22px; }
  .login-panel { padding: 70px 23px 28px; }
  .language-control { top: 16px; right: 18px; }
  .login-brand .brand-logo { width: 36px; height: 36px; }
  .login-brand .brand-name { font-size: 23px; }
  .login-brand p { font-size: 11px; }
  .form-heading { margin: 25px 0 22px; }
  .form-heading h1 { font-size: 35px; }
  .form-heading p { font-size: 13px; max-width: 280px; }
  .form-field > label { font-size: 14px; }
  .form-field + .form-field { margin-top: 18px; }
  .input-wrap input { height: 55px; }
  .form-options { font-size: 13px; margin: 13px 0 18px; }
  .login-button { height: 56px; font-size: 16px; }
  .social-buttons { gap: 10px; }
  .social-button { flex-direction: column; gap: 6px; font-size: 11px; padding: 10px 5px; min-height: 77px; }
  .social-logo { width: 23px; height: 23px; }
  .signup-line { font-size: 14px; margin-top: 20px; }
  .divider { margin: 20px 0 16px; }
  html[lang="en"] .form-heading h1 { font-size: 36px; }
}
@media (max-width: 350px) {
  body { padding: 9px; }
  .login-panel { padding-left: 17px; padding-right: 17px; }
  .form-heading h1 { font-size: 31px; }
  .remember-label { gap: 7px; }
  .social-button { font-size: 10px; }
  .signup-line { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ICOM integration and accessible account-help states. */
:root{--muted:#626f94;font-synthesis:none}
.brand-logo{display:grid;place-items:center;flex-shrink:0}.brand-logo .icon{width:100%;height:100%;stroke-width:1.6}.story-brand .brand-logo{color:#8cd8ff}.login-brand .brand-logo{color:#2868ff}.login-brand .brand-name{font-size:24px;letter-spacing:-1px}.story-brand .brand-name{letter-spacing:-1px}
.locale-form{display:flex;align-items:center;gap:8px}.language-control select{appearance:auto;padding-right:5px;max-width:155px;min-height:40px}.language-control noscript button{background:#f0f3ff;border:1px solid #dce1f2;border-radius:7px;padding:5px 9px;font-size:12px}
.story-copy{max-width:470px}.story-copy h2{font-size:clamp(31px,2.6vw,43px)}.story-description{max-width:375px;font-size:18px}.features{max-width:390px}.feature p{font-size:15px}.hero-art{top:117px;right:17px;width:62%;max-width:590px}
.login-button{margin-top:25px}.account-support{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:27px 0 24px;margin-top:34px;text-align:center;color:#53628c}.account-help summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:9px;cursor:pointer;font-size:16px;font-weight:600;border-radius:6px;min-height:32px}.account-help summary::-webkit-details-marker{display:none}.account-help summary>.icon:last-child{width:16px;height:16px;transition:transform .18s}.account-help[open] summary>.icon:last-child{transform:rotate(90deg)}.help-caption{font-size:13px;margin:5px 0 0;color:var(--muted)}.help-content{margin-top:14px;padding:14px;text-align:left;background:#f1f5ff;border-radius:10px;font-size:13px;line-height:1.8}.help-content p{margin:0}.help-content p+p{margin-top:10px}.login-footer{display:flex;justify-content:flex-end;gap:0;margin-top:17px;font-size:12px;color:var(--muted)}.login-footer span+span{border-left:1px solid var(--line);padding-left:17px;margin-left:17px}.notice[data-kind=error]{margin:0 0 20px}
html[lang=lo] .form-heading h1,html[lang=th] .form-heading h1{letter-spacing:0}.input-wrap input::placeholder{color:#657396}.story-footer{letter-spacing:3px}.login-panel{padding-top:66px;padding-bottom:29px}.form-heading{margin:34px 0 29px}
@media(min-width:1101px) and (max-width:1390px){.auth-shell{min-height:730px}.hero-art{top:170px;width:56%;right:-15px}.story-copy h2{font-size:31px}.story-description{max-width:320px;font-size:16px}.story-copy{margin-top:49px}.features{max-width:320px;gap:24px}.feature p{font-size:13px}.login-panel{padding-top:64px}.login-brand p{font-size:12px}.form-heading{margin:27px 0 23px}.form-heading h1{font-size:35px}.form-heading p{font-size:14px}.account-support{margin-top:25px;padding:19px 0}.account-help summary{font-size:14px}}
@media(max-width:1100px){.login-panel{padding-top:76px;padding-bottom:30px}.login-content{min-width:0}.form-heading h1{font-size:38px}.account-support{margin-top:28px;padding:22px 0}.login-footer{justify-content:center}}
@media(max-width:520px){body{padding:15px}.login-panel{padding:65px 23px 24px}.login-brand .brand-name{font-size:22px}.login-brand p{font-size:11px}.form-heading{margin:23px 0 24px}.form-heading h1{font-size:33px}.form-heading p{font-size:13px}.account-support{padding:18px 0;margin-top:25px}.account-help summary{font-size:14px;gap:7px}.help-caption{font-size:12px}.login-footer{font-size:11px}.help-content{padding:11px;font-size:12px}.language-control select{font-size:12px}.story-panel{display:none}}
@media(max-width:350px){body{padding:9px}.login-panel{padding-left:17px;padding-right:17px}.form-heading h1{font-size:29px}.account-help summary{font-size:13px}.account-help summary>.icon:first-child{width:21px;height:21px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
html[lang=lo] .story-copy h2,html[lang=lo] .form-heading h1,html[lang=lo] .feature h3,html[lang=lo] .form-field>label,html[lang=lo] .login-button{font-synthesis:weight}
