/* Login presentation only; authentication and CAPTCHA behavior live in mulai.php. */
:root {
  --login-green: #005d49;
  --login-ink: #0c2843;
  --login-muted: #8690ae;
}

body {
  background: #e6faf1 url('../images/login-background.svg') center / cover no-repeat fixed !important;
  color: var(--login-ink) !important;
}

body::before {
  content: '';
  position: fixed;
  z-index: 6;
  bottom: -25px;
  left: -76px;
  width: 310px;
  height: 320px;
  background: url('../images/login-foreground.svg') center / contain no-repeat;
  filter: blur(8px);
  pointer-events: none;
}

@media (min-width: 1025px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body::before {
    transform: translate3d(var(--login-leaf-x, 0px), var(--login-leaf-y, 0px), 0) rotate(var(--login-leaf-angle, 0deg));
    transform-origin: 21% 100%;
    will-change: transform;
  }
}

.login-decoration-defs { position: absolute; pointer-events: none; }
.login-container { position: relative; z-index: 1; align-items: flex-start; padding: 68px 32px 48px; }
.login-card, .login-card * { box-sizing: border-box; }
.fa-solid { font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.fa-regular { font-family: 'Font Awesome 5 Free'; font-weight: 400; }

.login-card {
  display: grid;
  grid-template-columns: 52.575% 47.425%;
  width: min(1324px, 100%);
  max-width: 1324px;
  min-height: 970px;
  border: 1px solid rgba(255, 255, 255, .93);
  border-radius: 25px;
  background: rgba(242, 255, 249, .64);
  box-shadow: 0 24px 60px rgba(27, 123, 87, .13) !important;
  overflow: hidden;
  animation: none;
}

.login-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, #effff8, #e3faf0);
}

.login-visual::before {
  content: '';
  position: absolute;
  z-index: 3;
  top: 68px;
  right: 50px;
  width: 66px;
  height: 51px;
  border-radius: 0;
  background: radial-gradient(circle, #72d6a5 2.5px, transparent 2.8px) 0 0 / 16.5px 16px;
  opacity: .85;
}

.login-visual::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: 17px;
  right: -40px;
  bottom: auto;
  left: auto;
  width: 210px;
  height: 167px;
  border-radius: 12% 10% 52% 49%;
  background: linear-gradient(140deg, rgba(179, 244, 212, .12), rgba(131, 224, 175, .34));
  clip-path: none;
  transform: rotate(-20deg);
}

.login-building {
  position: absolute;
  z-index: 2;
  top: 307px;
  left: 3px;
  width: calc(100% - 21px);
  height: 526px;
  max-height: none;
  border-radius: 0;
  object-fit: cover;
  object-position: center 60%;
  transform: none;
  clip-path: url(#login-photo-clip);
  -webkit-mask-image: none;
  mask-image: none;
}

.login-photo-sky { display: none; }
.login-photo-fade { display: block; position: absolute; z-index: 1; top: 308px; left: 3px; width: calc(100% - 11px); height: 540px; background: #c0f5dc; clip-path: url(#login-photo-clip); pointer-events: none; }

.login-visual-brand { top: 39px; left: 53px; gap: 16px; }
.login-visual-brand img { width: 80px; height: 80px; object-fit: contain; }
.login-visual-brand strong { color: #005443; font-size: 18px; font-weight: 800; }
.login-visual-brand small { margin-top: 6px; color: #294b68; font-size: 11px; font-weight: 700; letter-spacing: .36em; }
.login-visual-brand em { width: 31px; margin-top: 13px; background: #00c751; }

.login-visual-copy { top: 124px; left: 70px; }
.login-visual-copy h1 {
  margin: 0;
  color: #005743;
  font-size: 140px;
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.075em;
  transform: translate(-8px, -8px);
}
.login-visual-copy h1 span { color: #00c653; }
.login-visual-copy h2 { margin: -13px 0 6px; color: #005c4a; font-size: 23px; font-weight: 800; letter-spacing: .29em; white-space: nowrap; }
.login-visual-copy p { margin: 0; color: #24465e; font-size: 11px; font-weight: 700; letter-spacing: .31em; line-height: 1.7; }

.login-visual-motto {
  position: absolute;
  z-index: 4;
  top: 143px;
  right: 65px;
  color: #00764e;
  font-family: 'Segoe Script', 'Brush Script MT', cursive;
  font-size: 31px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.05em;
  line-height: 1.16;
  transform: rotate(-11deg);
}
.login-visual-motto::after { content: ''; display: block; width: 108px; height: 14px; margin: 0 0 0 29px; border-top: 1.5px solid #00764e; border-radius: 50%; transform: rotate(-6deg); }

.login-visual-foot {
  position: absolute;
  z-index: 4;
  right: 40px;
  bottom: 31px;
  left: 69px;
  display: grid;
  grid-template-columns: 140px 187px 1fr;
  gap: 0;
  color: #005c4b;
  letter-spacing: normal;
  line-height: 1.25;
  text-transform: none;
}
.login-visual-foot::before { grid-column: 1 / -1; width: 35px; height: 3px; margin-bottom: 24px; border-radius: 3px; background: #00624e; }
.login-visual-foot > div { display: flex; align-items: flex-start; gap: 17px; min-width: 0; min-height: 46px; padding: 0 23px; border-right: 1px solid #bce6d5; }
.login-visual-foot > div:first-of-type { padding-left: 0; }
.login-visual-foot > div:last-child { padding-right: 0; border-right: 0; }
.login-visual-foot svg { flex: none; width: 30px; height: 30px; color: #00644f; }
.login-visual-foot span { display: block; }
.login-visual-foot strong { display: block; margin-top: 1px; font-family: Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.login-visual-foot small { display: block; margin-top: 4px; color: #426379; font-size: 12px; font-weight: 400; letter-spacing: .02em; line-height: 1.28; }

.login-form-container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 48px 54px 29px 76px;
  border: 0;
  border-radius: 25px 0 0 25px;
  background: rgba(255, 255, 255, .96);
  box-shadow: -8px 0 28px rgba(16, 116, 78, .025);
}
.login-form-container::after { content: ''; position: absolute; right: -13px; bottom: -18px; width: 80px; height: 93px; border-radius: 100% 0 0 0; background: rgba(158, 235, 199, .45); pointer-events: none; }
.login-form-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.login-form-mark { gap: 14px; }
.login-form-mark::before { width: 33px; height: 6px; margin-top: 11px; background: #00c555; }
.login-form-mark strong { color: #00634e; font-size: 22px; font-weight: 750; line-height: 1.1; }
.login-form-mark small { margin-top: 3px; color: #6f7e9f; font-family: Arial, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .21em; line-height: 1.55; }
.login-motto { margin-right: 42px; padding-left: 18px; border-left: 2px solid #58d692; color: #6d7a9a; font-size: 10px; font-weight: 700; letter-spacing: .2em; line-height: 1.5; }
.login-main { margin-top: 27px; }
.login-title { margin: 0 0 5px; color: #0c2843; font-size: 40px; font-weight: 800; line-height: 1.12; letter-spacing: -.045em; text-align: left; }
.login-subtitle { margin: 0 0 21px; color: #8690ae; font-size: 19px; font-weight: 600; line-height: 1.47; text-align: left; }

.login-role-tabs { width: calc(100% + 13px); height: 55px; margin-left: -13px; padding: 5px 7px; border: 1px solid #bce7d7; border-radius: 32px; background: linear-gradient(110deg, #fff, #f8fafc); box-shadow: 0 5px 12px rgba(7, 111, 79, .055); }
.login-role-tabs button { gap: 12px; border-right-color: #e5e9f0; border-radius: 27px; color: #0e2942; font-family: Arial, sans-serif; font-size: 16px; font-weight: 700; }
.login-role-tabs button.active { background: linear-gradient(110deg, #00765b, #006c50); box-shadow: 0 4px 9px rgba(0, 109, 78, .2), inset 0 0 10px rgba(51, 206, 145, .14); }
.login-role-tabs button i { font-size: 21px; }

#form-login { width: calc(100% + 7px); margin-top: 26px; margin-left: -7px; }
.login-field { margin-bottom: 8px; }
.login-field .form-control { height: 53px; padding-left: 65px; border: 1px solid #dce2ee; border-radius: 7px; background: transparent; color: #2e4768; font-family: Arial, sans-serif; font-size: 16px; box-shadow: 0 3px 8px rgba(39, 71, 105, .045); }
.login-field:first-of-type .form-control { height: 52px; }
.login-field .form-control::placeholder { color: #8190ae; }
.login-field > i { top: 16px; left: 19px; color: #4c6180; font-size: 23px; }
.login-field-help { margin: -4px 0 22px 65px; color: #7e8eae; font-family: Arial, sans-serif; font-size: 11px; line-height: 16px; }
.login-eye { right: 10px; height: 53px; color: #4d6082; font-size: 21px; }
.login-options { margin: 16px 0 21px; font-family: Arial, sans-serif; font-size: 13px; }
.login-options label { gap: 13px; color: #18344d; }
.login-options input { width: 24px; height: 24px; accent-color: #006b53; }
.login-forgot { color: #005f48; font-family: Arial, sans-serif; font-size: 14px; font-weight: 700; }

.slide-captcha {
  width: min(462px, 100%);
  margin: 9px auto 22px;
  padding: 14px 17px 10px;
  border: 1px solid #caeadc;
  border-radius: 11px;
  background: linear-gradient(110deg, #f2fcf7, #f5fcf9);
  transform: translateX(3px);
}
.slide-captcha-heading { margin-bottom: 8px; color: #005c49; font-family: Arial, sans-serif; font-size: 17px; line-height: 20px; }
.slide-captcha-heading strong { font-weight: 700; }
.slide-captcha-heading button { padding: 0; font-size: 17px; line-height: 20px; }
.slide-captcha-image { height: 129px; aspect-ratio: auto; border-radius: 8px; }
.slide-captcha-controls { gap: 20px; margin-top: 8px; height: 34px; }
.slide-captcha-controls input[type=range] { appearance: none; height: 8px; margin: 0; border: 1px solid #dadcdb; border-radius: 10px; background: linear-gradient(90deg, #dfe2e0 69%, #f3f4f3 69%, #f3f4f3 76%, #dfe2e0 76%); }
.slide-captcha-controls input[type=range]::-webkit-slider-thumb { appearance: none; width: 19px; height: 19px; border: 0; border-radius: 50%; background: #006b57; box-shadow: inset 0 0 4px rgba(255, 255, 255, .16); }
.slide-captcha-controls input[type=range]::-moz-range-thumb { width: 19px; height: 19px; border: 0; border-radius: 50%; background: #006b57; }
.slide-captcha-controls input[type=range]:focus-visible { outline: 2px solid #079a76; outline-offset: 5px; }
.slide-captcha-controls button { min-width: 96px; height: 34px; padding: 6px 13px; border-radius: 6px; background: linear-gradient(110deg, #007158, #005e4b); font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; }
#captcha-status { max-width: 380px; min-height: 32px; margin-top: 4px; color: #4a514f; font-family: Arial, sans-serif; font-size: 14px; line-height: 16px; }

.btn-login { height: 67px; border-radius: 36px; background: linear-gradient(105deg, #00624e, #006850 55%, #005b48); color: #fff; font-family: Arial, sans-serif; font-size: 23px; font-weight: 700; box-shadow: 0 10px 19px rgba(0, 122, 91, .24), inset 0 1px 2px rgba(255, 255, 255, .14); }
.btn-login:hover, .btn-login:focus { background: linear-gradient(105deg, #00533f, #007657); }
.btn-login i { right: 31px; font-size: 25px; }
.login-form-foot { position: relative; z-index: 1; gap: 19px; margin-left: -4px; padding-top: 19px; color: #7180a3; font-family: Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .17em; line-height: 16px; }
.login-form-foot::before, .login-form-foot::after { background: #bdc9de; }

@media (max-width: 1180px) {
  .login-container { padding: 28px 20px; }
  .login-card { min-height: 850px; }
  .login-form-container { padding: 39px 32px 30px 45px; }
  .login-motto { margin-right: 0; }
  .login-main { margin-top: 35px; }
  .login-title { font-size: 34px; }
  .login-subtitle { font-size: 16px; }
  .login-visual-brand { left: 27px; gap: 9px; }
  .login-visual-brand img { width: 65px; height: 65px; }
  .login-visual-brand strong { font-size: 15px; }
  .login-visual-copy { left: 40px; }
  .login-visual-copy h1 { font-size: 118px; }
  .login-visual-copy h2 { font-size: 17px; }
  .login-visual-copy p { font-size: 10px; letter-spacing: .25em; }
  .login-visual-motto { top: 148px; right: 26px; font-size: 25px; }
  .login-building { top: 284px; height: 460px; }
  .login-photo-fade { top: 285px; height: 472px; }
  .login-visual-foot { right: 20px; left: 30px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .login-visual-foot > div { gap: 9px; padding: 0 11px; }
  .login-visual-foot svg { width: 24px; height: 24px; }
  .login-visual-foot strong { font-size: 9px; }
  .login-visual-foot small { font-size: 10px; }
}

@media (max-width: 900px) {
  .login-card { grid-template-columns: 45% 55%; min-height: 820px; }
  .login-form-container { padding: 32px 25px; }
  .login-form-mark { gap: 10px; }
  .login-form-mark::before { width: 23px; }
  .login-form-mark small, .login-motto { font-size: 8px; }
  .login-title { font-size: 30px; }
  .login-subtitle { font-size: 14px; }
  .login-role-tabs button { gap: 7px; font-size: 13px; }
  .login-role-tabs button i { font-size: 18px; }
  .login-visual-brand { left: 20px; }
  .login-visual-brand strong { font-size: 12px; }
  .login-visual-brand small { font-size: 8px; }
  .login-visual-copy { left: 28px; }
  .login-visual-copy h1 { font-size: 99px; }
  .login-visual-copy h2 { font-size: 13px; }
  .login-visual-copy p { font-size: 9px; letter-spacing: .18em; }
  .login-visual-motto { display: none; }
  .login-building { top: 280px; width: 100%; height: 426px; }
  .login-photo-fade { top: 281px; width: 100%; height: 437px; }
  .login-visual-foot { right: 17px; left: 24px; }
  .login-visual-foot > div { display: block; padding: 0 6px; }
  .login-visual-foot svg { margin-bottom: 8px; }
  .login-visual-foot strong { font-size: 8px; }
  .slide-captcha-controls { gap: 12px; }
  .slide-captcha-controls button { min-width: 80px; }
  #captcha-status { font-size: 12px; }
}

@media (max-width: 700px) {
  body::before { z-index: 0; width: 170px; height: 190px; }
  .login-container { padding: 14px; }
  .login-card { display: flex; flex-direction: column; min-height: 0; border-radius: 22px; }
  .login-visual { min-height: 360px; background-size: cover; }
  .login-visual::before { top: 37px; right: 22px; }
  .login-visual::after { top: 0; right: -25px; }
  .login-visual-brand { top: 14px; left: 19px; }
  .login-visual-brand img { width: 52px; height: 52px; }
  .login-visual-brand strong { font-size: 13px; }
  .login-visual-brand small { font-size: 8px; letter-spacing: .25em; }
  .login-visual-brand em { margin-top: 7px; }
  .login-visual-copy { top: 79px; left: 28px; }
  .login-visual-copy h1 { font-size: 83px; }
  .login-visual-copy h2 { margin-top: -5px; font-size: 12px; letter-spacing: .25em; }
  .login-visual-copy p { font-size: 8px; letter-spacing: .18em; }
  .login-building { top: 210px; left: 0; width: 100%; height: 148px; object-position: center 49%; }
  .login-photo-fade { top: 211px; left: 0; width: 100%; height: 152px; }
  .login-visual-foot { display: none; }
  .login-form-container { min-height: 0; padding: 30px 25px 27px; border-radius: 22px 22px 0 0; }
  .login-main { margin-top: 32px; }
  .login-title { font-size: clamp(24px, 6.1vw, 32px); }
  .login-subtitle { font-size: 14px; }
  .login-role-tabs { height: 50px; }
  .login-role-tabs button { gap: 8px; font-size: 14px; }
  .login-role-tabs button i { font-size: 18px; }
  .login-field .form-control { padding-left: 52px; font-size: 15px; }
  .login-field > i { left: 17px; }
  .login-field-help { margin-left: 52px; }
  .login-options { font-size: 12px; }
  .login-forgot { font-size: 12px; }
  .slide-captcha { width: 100%; padding: 13px 12px 11px; transform: none; }
  .slide-captcha-heading { font-size: 15px; }
  .slide-captcha-image { height: 129px; }
  .slide-captcha-controls { gap: 12px; }
  #captcha-status { font-size: 12px; line-height: 16px; }
  .btn-login { height: 58px; font-size: 20px; }
  .login-form-foot { margin-top: 24px; gap: 12px; font-size: 9px; }
}
