/* Login composition based on the supplied Modern e-CALK Sumsel portal. */
body {
  --login-panel-width: clamp(410px, 34vw, 550px);
  color: #082333;
  background: #edf6f3 url('login-rumah-songket.png') center center / cover no-repeat;
  background-position: left center;
  background-size: max(100vw, calc((100vw - var(--login-panel-width)) * 1.680672)) auto;
}
.page { grid-template-columns: minmax(0, 1fr) var(--login-panel-width); min-height: 100svh; overflow: hidden; }
.brand-visual { background: none; min-height: 100svh; }
.brand-visual::before {
  display: block; z-index: 0; pointer-events: none;
  bottom: auto; height: 60%;
  background: radial-gradient(ellipse 64% 69% at 20% 15%, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 45%, rgba(255,255,255,.64) 68%, transparent 100%);
}
.brand-visual::after, .heritage-backdrop, .login-side::before, .login-side::after { display: none; }
.province-brandmark {
  top: 4.5vh; left: 5vw; width: calc(100% - 6vw); min-height: 0;
  padding: 0; gap: 19px; background: none; container-type: normal;
}
.province-brandmark img { width: clamp(85px, 7.2vw, 120px); height: clamp(105px, 8vw, 134px); }
.province-brandmark strong { font-size: clamp(18px, 1.9vw, 32px); color: #061e2a; line-height: 1.15; letter-spacing: .005em; }
.province-brandmark small { display: block; margin-top: 10px; color: #758491; font-size: clamp(8px, .83vw, 14px); letter-spacing: .29em; }
.hero-copy { top: 21.5%; left: 5.5vw; width: calc(100% - 6vw); padding: 0; background: none; }
.hero-kicker { font-size: clamp(10px, 1vw, 17px); font-weight: 600; letter-spacing: 0; color: #405771; margin-bottom: 12px; gap: 12px; }
.hero-kicker::before { width: 38px; height: 5px; background: linear-gradient(90deg,#d9990a,#f2ce66); }
.hero-copy h2 {
  font-size: clamp(80px, 8.6vw, 145px); line-height: .94; letter-spacing: -.065em;
  background: linear-gradient(155deg, #13a45e, #005343 90%); color: transparent;
  -webkit-background-clip: text; background-clip: text; text-shadow: none;
}
.hero-copy p { margin-top: 8px; font-size: clamp(19px, 1.9vw, 32px); line-height: 1.3; color: #082333; font-weight: 700; text-shadow: 0 1px 15px white; }
.hero-copy small { margin: 11px 0 0 24px; width: 45%; max-width: 430px; text-align: left; font-size: clamp(11px, 1vw, 17px); line-height: 1.5; color: #526882; text-shadow: 0 1px 10px white; }
.finance-motion {
  display: block; top: auto; bottom: 20%; right: 6%; width: 33%; max-width: 325px;
  padding: clamp(16px, 1.6vw, 27px); border-radius: 22px; transform: rotate(-2deg);
  border: 1px solid white; background: rgba(255,255,255,.94);
  box-shadow: 0 25px 55px rgba(19,80,61,.16); animation: none;
}
.finance-motion::before { display: none; }
.finance-head strong { font-size: clamp(11px, 1.04vw, 17px); letter-spacing: -.035em; }
.finance-head span { font-size: clamp(9px, .78vw, 13px); padding: 6px 10px; }
.finance-summary { margin-top: 18px; gap: 10px; }
.finance-value strong { font-size: clamp(18px, 1.6vw, 27px); }
.finance-value small { margin-top: 5px; font-size: clamp(9px, .85vw, 14px); color: #8593a4; white-space: nowrap; }
.report-donut { width: clamp(42px, 4vw, 65px); height: clamp(42px, 4vw, 65px); }
.report-donut::after { inset: 25%; }
.finance-chart { height: clamp(74px, 6.5vw, 109px); margin: 18px 0 13px; padding: 8px 6px 0; gap: 9px; }
.finance-chart i { opacity: 1; transform: scaleY(1); animation: none !important; border-radius: 6px 6px 0 0; }
.finance-chart i:nth-child(1), .finance-chart i:nth-child(2), .finance-chart i:nth-child(6) { background: linear-gradient(#008d78,#00574a); }
.finance-chart i:nth-child(3), .finance-chart i:nth-child(5), .finance-chart i:nth-child(7) { background: linear-gradient(#ffd15a,#f4b932); }
.finance-chart i:nth-child(4) { background: linear-gradient(#d80a28,#b10021); }
.finance-legend { font-size: clamp(9px, .74vw, 12px); gap: 4px; }
.finance-legend i { width: 10px; height: 10px; }
.finance-legend span:nth-child(2) i, .finance-legend span:nth-child(5) i { background: #f7bf3d; }
.finance-legend span:nth-child(3) i { background: #c90629; }
.finance-legend span:nth-child(4) i { background: #007b69; }
.report-donut { background: conic-gradient(#009885 0 36%, #c80929 36% 49%, #ffca52 49% 81%, #c80929 81% 100%); }
.portal-features { position: absolute; z-index: 2; bottom: 9.5%; left: 4.4vw; right: 5vw; display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.portal-feature { display: flex; align-items: center; gap: 17px; }
.feature-icon { display: grid; place-items: center; flex: 0 0 auto; width: 56px; height: 58px; border-radius: 18px; background: linear-gradient(145deg,#009a76,#005846); box-shadow: 0 6px 13px rgba(0,100,73,.15); }
.feature-icon svg { width: 32px; height: 32px; fill: none; stroke: white; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-feature:last-child svg { stroke-width: 4; }
.portal-feature strong { display: block; font-size: clamp(12px, 1.03vw, 17px); letter-spacing: -.035em; }
.portal-feature small { display: block; margin-top: 4px; font-size: clamp(10px, .8vw, 13px); line-height: 1.3; color: #778b9c; }
.portal-tagline { position: absolute; z-index: 2; bottom: 4.3%; left: 3.7vw; color: #8797a8; font-size: clamp(7px, .67vw, 11px); letter-spacing: .2em; }
.portal-tagline::before { display: inline-block; content: ''; width: 40px; height: 3px; margin-right: 12px; vertical-align: middle; background: #dca515; }
.login-side { min-height: 100svh; padding: 5vh clamp(18px, 1.8vw, 30px) 5vh 0; background: none; justify-content: center; }
.login-shell { position: relative; min-width: 0; width: 100%; max-width: 510px; margin: 0 auto; padding: 18px; border: 1px solid rgba(255,255,255,.7); border-radius: 30px; background: rgba(255,255,255,.7); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); box-shadow: 0 20px 55px rgba(29,84,65,.09); animation: none; }
.login-brand { margin: 10px 0 18px 10px; gap: 18px; }
.login-brand-icon { width: 48px; height: 60px; border: 0; border-radius: 0; background: none; box-shadow: none; animation: none; }
.login-brand-icon img { width: 100%; height: 100%; object-fit: contain; }
.login-brand strong { font-size: clamp(17px, 1.25vw, 21px); color: #062638; letter-spacing: -.03em; }
.login-brand small { margin-top: 5px; font-size: clamp(11px, .8vw, 14px); color: #8094a3; }
.login-card { padding: clamp(20px, 1.5vw, 25px); border-radius: 25px; border: 1px solid white; background: rgba(255,255,255,.88); box-shadow: 0 15px 32px rgba(48,117,91,.04); backdrop-filter: none; }
.login-card::before { height: 4px; background: linear-gradient(90deg,#007653 0 36%,#e4af0c 36% 68%,#bc1631 68%); animation: none; transform: none; }
.login-card::after, .login-button::before { display: none; }
.card-heading { margin-bottom: 25px; }
.eyebrow { font-size: clamp(10px, .94vw, 16px); color: #405771; margin-bottom: 10px; letter-spacing: 0; }
.eyebrow::before { width: 34px; height: 5px; background: #e4ad27; box-shadow: none; }
.login-title { flex-direction: row; align-items: center; font-size: clamp(23px, 1.95vw, 33px); letter-spacing: -.055em; color: #062638; margin-bottom: 7px; gap: 12px; }
.login-title span { padding: 8px 13px; border-radius: 15px; font-size: clamp(10px, .82vw, 14px); color: #9a6404; background: #fff7e0; border-color: #f5d388; letter-spacing: .045em; }
.login-intro { font-size: clamp(12px, .9vw, 15px); color: #8593a5; }
.field, .password-field { margin-bottom: 18px; }
.field > label, .budget-group label { font-size: clamp(12px, .9vw, 15px); color: #092b3c; margin-bottom: 8px; }
.field input, .budget-select { height: clamp(49px, 3.2vw, 57px); font-size: clamp(14px, 1vw, 17px); border: 1px solid #cadfdf; border-radius: 15px; background: rgba(255,255,255,.45); box-shadow: none; }
.field input { padding: 0 50px 0 63px; }
.field input::placeholder { color: #8898ac; }
.input-wrap .field-icon { left: 19px; width: 26px; height: 26px; color: #4c5f6a; }
.budget-select { padding-left: 63px; padding-right: 20px; }
.budget-group { margin-bottom: 20px; }
.login-button { height: clamp(53px, 4vw, 67px); border: 1px solid #138562; border-radius: 16px; background: linear-gradient(110deg,#005647 0%,#087e65 70%,#7aaf48 100%); font-size: clamp(17px, 1.3vw, 22px); box-shadow: 0 15px 27px rgba(0,130,77,.23); gap: 17px; }
.login-button svg { width: 24px; height: 24px; }
.form-options { margin-top: 18px; }
.remember { font-size: clamp(12px, .94vw, 16px); color: #536b7c; }
.remember input { width: 23px; height: 23px; }
.secure-note { margin-top: 18px; padding-top: 19px; color: #8195a3; font-size: clamp(10px, .81vw, 14px); }
.secure-note svg { width: 17px; height: 17px; }
.footer { position: absolute; top: calc(100% + 12px); left: 0; width: 100%; padding: 0; font-size: clamp(9px, .7vw, 12px); text-align: center; color: #285c61; }
.footer strong { font-weight: 400; }
.password-help { margin: 0 0 16px; color: #5d7068; font-size: 12px; line-height: 1.45; }
@media (max-width: 1200px) and (min-width: 761px) {
  .province-brandmark { left: 3vw; gap: 10px; }
  .province-brandmark strong { font-size: 1.9vw; }
  .province-brandmark small { letter-spacing: .15em; }
  .hero-copy { left: 4vw; }
  .finance-motion { width: 34%; right: 5%; }
  .portal-feature { gap: 9px; }
  .feature-icon { width: 42px; height: 44px; border-radius: 13px; }
  .feature-icon svg { width: 27px; height: 27px; }
  .portal-features { left: 3vw; gap: 8px; }
  .login-shell { padding: 15px; }
  .login-brand { gap: 10px; margin-left: 0; }
  .login-brand-icon { width: 49px; height: 49px; }
  .login-card { padding: 22px; }
  .login-title { font-size: 2.15vw; }
}
@media (max-height: 780px) and (min-width: 761px) {
  .login-side { padding-top: 30px; padding-bottom: 40px; }
  .login-brand { margin-top: 0; margin-bottom: 13px; }
  .login-brand-icon { width: 48px; height: 48px; }
  .login-card { padding-top: 23px; padding-bottom: 23px; }
  .card-heading { margin-bottom: 18px; }
  .field, .password-field { margin-bottom: 13px; }
  .field input, .budget-select { height: 49px; }
  .budget-group { margin-bottom: 16px; }
  .login-button { height: 52px; }
  .secure-note { padding-top: 13px; margin-top: 14px; }
  .finance-motion { bottom: 21%; padding: 18px; }
  .finance-chart { height: 76px; }
  .hero-copy { top: 22%; }
  .hero-copy small { display: block; }
}
@media (max-width: 760px) {
  body { background-position: 42% top; background-size: cover; background-attachment: scroll; }
  .page { display: block; overflow: visible; }
  .brand-visual { min-height: 330px; }
  .province-brandmark { top: 20px; left: 20px; width: calc(100% - 40px); gap: 10px; }
  .province-brandmark img { width: 60px; height: 75px; }
  .province-brandmark strong { font-size: clamp(12px,3.3vw,23px); }
  .province-brandmark small { font-size: clamp(6px,1.45vw,10px); letter-spacing: .12em; margin-top: 6px; }
  .hero-copy { top: 122px; left: 24px; width: calc(100% - 48px); }
  .hero-kicker { display: inline-flex; font-size: 9px; margin-bottom: 9px; }
  .hero-copy h2 { font-size: 75px; }
  .hero-copy p { display: block; font-size: 18px; }
  .hero-copy small, .finance-motion, .portal-features, .portal-tagline { display: none; }
  .login-side { min-height: 0; padding: 0 16px 55px; }
  .login-shell { min-width: 0; max-width: 540px; padding: 15px; border-radius: 24px; }
  .login-brand { margin: 4px 0 15px; gap: 11px; }
  .login-brand-icon { width: 48px; height: 48px; border-radius: 15px; }
  .login-brand strong { font-size: 17px; }
  .login-brand small { font-size: 11px; }
  .login-card { padding: 23px 18px; border-radius: 20px; }
  .login-title { font-size: clamp(18px,4.8vw,29px); flex-wrap: wrap; }
  .login-title span { font-size: 9px; padding: 6px 8px; }
  .login-intro { font-size: 12px; }
  .field input, .budget-select { height: 52px; font-size: 14px; }
  .login-button { height: 54px; font-size: 17px; }
  .form-options { flex-direction: row; }
  .footer { font-size: 9px; top: calc(100% + 12px); }
}
/* Keep the full login, including its footer and validation message, in view on desktop. */
@media (min-width: 761px) {
  .page { height: 100vh; height: 100svh; min-height: 0; }
  .brand-visual, .login-side { height: 100%; min-height: 0; }
  .login-side { padding-block: clamp(10px, 1.5svh, 20px); }
  .login-shell { max-height: calc(100svh - 20px); overflow-y: auto; padding: clamp(8px, 1svh, 14px); scrollbar-width: thin; }
  .login-brand { margin: 0 6px clamp(5px, .8svh, 12px); }
  .login-brand-icon { height: clamp(38px, 5svh, 54px); }
  .login-card { padding: clamp(12px, 1.7svh, 23px); }
  .card-heading { margin-bottom: clamp(8px, 1.3svh, 17px); }
  .field, .password-field { margin-bottom: clamp(7px, 1svh, 13px); }
  .field > label, .budget-group label { margin-bottom: 5px; }
  .field input, .budget-select { height: clamp(42px, 5svh, 51px); }
  .password-help { margin-bottom: clamp(7px, 1svh, 13px); }
  .budget-group { margin-bottom: clamp(8px, 1.1svh, 15px); }
  .login-button { height: clamp(46px, 5.3svh, 56px); }
  .form-options { margin-top: clamp(7px, 1svh, 14px); }
  .secure-note { margin-top: clamp(8px, 1.1svh, 15px); padding-top: clamp(8px, 1svh, 13px); }
  .footer { position: static; width: auto; margin-top: clamp(7px, 1svh, 14px); white-space: normal; }
}
/* On genuinely short viewports, never clip inputs or error messages. */
@media (min-width: 761px) and (max-height: 720px) {
  .page { height: auto; min-height: 100svh; overflow: visible; }
  .brand-visual, .login-side { min-height: 100svh; }
  .login-side { height: auto; }
  .login-shell { max-height: none; overflow: visible; }
}
