:root {
  --login-blue: #63358f;
  --login-blue-deep: #3b1d5c;
  --login-purple: #6336a5;
  --login-purple-deep: #4b267f;
  --login-yellow: #ffc928;
  --login-ink: #302552;
  --login-muted: #625d7b;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body.login-page {
  min-height: 100vh;
  margin: 0;
  color: var(--login-ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #43265f;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  padding: 20px;
  place-items: center;
  background:
    linear-gradient(115deg, rgba(48, 22, 76, .76), rgba(111, 76, 146, .5)),
    url('../../gambar/latar_login.png') center / cover no-repeat;
}

.login-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(1360px, 100%);
  height: min(794px, calc(100dvh - 40px));
  min-height: 0;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, .88);
  border-radius: 38px;
  background: rgba(255, 255, 255, .15);
  box-shadow: 0 24px 65px rgba(5, 31, 70, .24);
  backdrop-filter: blur(7px);
}

.login-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: clamp(28px, 5.4vh, 49px) clamp(36px, 5vw, 68px) clamp(28px, 5vh, 48px);
  color: #fff;
  background: linear-gradient(145deg, rgba(105, 58, 145, .98), rgba(53, 25, 83, .99));
  isolation: isolate;
}

.login-showcase::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 54% 43%, rgba(190, 133, 225, .2), transparent 32%),
    linear-gradient(180deg, transparent 58%, rgba(35, 13, 59, .24));
  content: '';
}

.login-showcase-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.login-showcase-brand img {
  width: 35px;
  height: 43px;
  padding: 3px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .14));
}

.login-showcase-brand span,
.login-showcase-brand strong { display: block; text-transform: uppercase; }
.login-showcase-brand span { font-size: 1.08rem; font-weight: 800; letter-spacing: .11em; line-height: 1.25; }
.login-showcase-brand strong { margin-top: 8px; color: var(--login-yellow); font-size: .94rem; font-weight: 800; letter-spacing: .035em; line-height: 1.3; }

.login-logo-frame {
  position: relative;
  z-index: 2;
  display: grid;
  width: clamp(190px, 31vh, 278px);
  height: clamp(215px, 35vh, 315px);
  margin: clamp(20px, 5.5vh, 47px) auto clamp(8px, 2vh, 17px);
  place-items: center;
}

.login-logo-frame::before {
  position: absolute;
  width: 92%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 30px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 20px 44px rgba(2, 25, 63, .18), inset 0 1px 0 #fff;
  content: '';
}

.login-logo-frame img {
  position: relative;
  z-index: 1;
  width: 77%;
  height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 15px 12px rgba(0, 0, 0, .2));
}

.login-showcase-motto {
  position: relative;
  z-index: 2;
  margin-top: auto;
  text-align: center;
}

.login-showcase-motto > i { display: block; width: 53px; height: 4px; margin: 0 auto 24px; border-radius: 99px; background: var(--login-yellow); }
.login-showcase-motto small { display: block; color: rgba(255,255,255,.84); font-size: .58rem; font-style: normal; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; }
.login-showcase-motto p { margin: 18px 0 0; color: #fff; font-size: clamp(1.55rem, 2.25vw, 2rem); font-style: normal; font-weight: 800; letter-spacing: -.04em; line-height: 1.28; }
.login-showcase-motto em { display: block; margin-top: 17px; color: rgba(255,255,255,.78); font-size: .7rem; font-style: normal; line-height: 1.65; }

.login-wave { position: absolute; z-index: 1; width: 115%; height: 190px; border: 1px solid rgba(192, 135, 226, .38); border-radius: 50%; pointer-events: none; }
.login-wave-one { right: -30%; bottom: -116px; box-shadow: 0 -23px 0 rgba(105, 55, 150, .3), 0 -46px 0 rgba(70, 31, 105, .34); transform: rotate(10deg); }
.login-wave-two { left: -58%; bottom: -115px; opacity: .56; transform: rotate(-14deg); }

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 5.8vh, 58px) clamp(42px, 6vw, 79px) clamp(24px, 4.2vh, 42px);
  border-left: 1px solid rgba(255,255,255,.48);
  border-radius: 38px 0 0 38px;
  background: linear-gradient(145deg, rgba(207, 224, 250, .77), rgba(220, 218, 248, .74));
  box-shadow: inset 1px 0 0 rgba(255,255,255,.48);
  backdrop-filter: blur(24px);
}

.login-heading { max-width: 530px; }
.login-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--login-purple-deep); font-size: .64rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.login-eyebrow i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--login-yellow); box-shadow: 0 0 0 4px rgba(255, 201, 40, .12); }
.login-heading h1 { margin: clamp(15px, 2.6vh, 25px) 0 0; color: var(--login-purple-deep); font-weight: 800; line-height: 1; }
.login-heading h1 span { display: block; font-size: clamp(1.25rem, 1.8vw, 1.75rem); font-weight: 700; letter-spacing: -.035em; }
.login-heading h1 strong { display: block; margin-top: 6px; background: linear-gradient(110deg, #5b348f 8%, #8a5db3 34%, #fff 47%, #f3bd2e 58%, #f3bd2e 92%); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(3.35rem, 5.2vw, 5.25rem); font-weight: 800; letter-spacing: -.07em; filter: drop-shadow(0 4px 10px rgba(113, 73, 156, .14)); animation: simnak-shine 3.4s ease-in-out infinite; }
@keyframes simnak-shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.login-heading .login-system-name { max-width: 510px; margin: 16px 0 0; color: var(--login-purple-deep); font-size: clamp(.96rem, 1.25vw, 1.15rem); font-weight: 800; line-height: 1.42; }
.login-accent { width: 63px; height: 6px; margin: clamp(16px, 2.8vh, 24px) 0 clamp(14px, 2.3vh, 20px); border-radius: 99px; background: var(--login-yellow); }
.login-instruction { margin: 0; color: #575377; font-size: .72rem; font-weight: 700; }

.login-alert { max-width: 530px; margin: 16px 0 0; border: 1px solid rgba(163, 57, 83, .12); border-radius: 9px; font-size: .7rem; }
.login-form { max-width: 530px; margin-top: clamp(14px, 2.3vh, 19px); }
.login-field + .login-field { margin-top: 15px; }
.login-field label { display: block; margin-bottom: 7px; color: var(--login-purple-deep); font-size: .72rem; font-weight: 800; }
.login-input-wrap { display: flex; align-items: stretch; min-height: clamp(49px, 6.5vh, 54px); overflow: hidden; border: 1px solid rgba(255, 255, 255, .7); border-radius: 11px; background: rgba(243, 247, 255, .82); box-shadow: 0 8px 20px rgba(55, 70, 135, .07); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.login-input-wrap:focus-within { border-color: rgba(99, 54, 165, .42); background: rgba(255, 255, 255, .94); box-shadow: 0 0 0 3px rgba(99, 54, 165, .09), 0 10px 22px rgba(55, 70, 135, .09); }
.login-input-wrap > i { display: grid; flex: 0 0 54px; width: 54px; place-items: center; border-right: 1px solid rgba(99, 54, 165, .1); color: #7050a1; font-size: 1.08rem; background: rgba(255,255,255,.25); }
.login-input-wrap input { width: 100%; min-width: 0; padding: 0 14px; border: 0; outline: 0; color: #302852; background: transparent; font: inherit; font-size: .78rem; font-weight: 600; }
.login-input-wrap input::placeholder { color: #9692ad; font-weight: 500; }
.login-password-toggle { display: grid; flex: 0 0 53px; width: 53px; padding: 0; border: 0; border-left: 1px solid rgba(99, 54, 165, .1); color: #7050a1; background: rgba(255,255,255,.18); place-items: center; cursor: pointer; }

.login-submit { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: clamp(52px, 7vh, 58px); margin-top: clamp(18px, 3vh, 25px); border: 0; border-radius: 11px; color: #fff; background: linear-gradient(100deg, #6040a0, #4d2888); box-shadow: 0 14px 27px rgba(68, 42, 127, .2); font: inherit; font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.login-submit i { font-size: 1.1rem; }
.login-submit:hover { filter: brightness(1.06); box-shadow: 0 17px 30px rgba(68, 42, 127, .26); transform: translateY(-2px); }
.login-submit:active { transform: translateY(0); }
.login-note { max-width: 530px; margin: clamp(16px, 2.7vh, 24px) 0 0; color: #66617d; font-size: .61rem; font-weight: 600; text-align: center; }
.login-copyright { max-width: 530px; margin: clamp(20px, 4vh, 34px) 0 0; color: #66617d; font-size: .59rem; font-weight: 600; line-height: 1.65; text-align: center; }

@media (max-width: 980px) {
  .login-card { grid-template-columns: .92fr 1.08fr; }
  .login-showcase { padding: 39px 35px 40px; }
  .login-showcase-brand span { font-size: .84rem; }
  .login-showcase-brand strong { font-size: .73rem; }
  .login-logo-frame { width: 240px; margin-top: 48px; }
  .login-logo-frame::before { width: 235px; height: 235px; }
  .login-logo-frame img { width: 198px; height: 245px; }
  .login-panel { padding-left: 42px; padding-right: 42px; }
}

@media (min-width: 721px) and (max-height: 700px) {
  .login-shell { padding: 10px; }
  .login-card { height: calc(100dvh - 20px); }
  .login-showcase { padding-top: 24px; padding-bottom: 23px; }
  .login-showcase-brand img { width: 30px; height: 36px; }
  .login-showcase-brand span { font-size: .8rem; }
  .login-showcase-brand strong { margin-top: 5px; font-size: .69rem; }
  .login-logo-frame { width: 174px; height: 196px; margin: 16px auto 5px; }
  .login-showcase-motto > i { margin-bottom: 12px; }
  .login-showcase-motto small { font-size: .49rem; }
  .login-showcase-motto p { margin-top: 9px; font-size: 1.35rem; }
  .login-showcase-motto em { margin-top: 8px; font-size: .59rem; line-height: 1.45; }
  .login-panel { padding-top: 25px; padding-bottom: 21px; }
  .login-heading h1 { margin-top: 10px; }
  .login-heading h1 span { font-size: 1.12rem; }
  .login-heading h1 strong { margin-top: 3px; font-size: clamp(2.8rem, 4.5vw, 3.65rem); }
  .login-heading .login-system-name { margin-top: 7px; font-size: .83rem; }
  .login-accent { height: 5px; margin: 12px 0; }
  .login-form { margin-top: 11px; }
  .login-field + .login-field { margin-top: 10px; }
  .login-field label { margin-bottom: 5px; }
  .login-input-wrap { min-height: 46px; }
  .login-submit { min-height: 48px; margin-top: 14px; }
  .login-note { margin-top: 12px; }
  .login-copyright { margin-top: 15px; }
}

@media (max-width: 720px) {
  .login-shell { padding: 0; }
  .login-card { display: block; width: 100%; height: auto; min-height: 100dvh; border: 0; border-radius: 0; }
  .login-showcase { min-height: 375px; padding: 30px 25px 28px; }
  .login-showcase-brand { gap: 11px; }
  .login-showcase-brand img { width: 29px; height: 35px; }
  .login-showcase-brand span { font-size: .72rem; }
  .login-showcase-brand strong { margin-top: 5px; font-size: .62rem; }
  .login-logo-frame { width: 142px; height: 157px; margin: 24px auto 10px; }
  .login-logo-frame::before { width: 148px; height: 148px; }
  .login-logo-frame img { width: 116px; height: 145px; }
  .login-showcase-motto > i { width: 40px; margin-bottom: 13px; }
  .login-showcase-motto small { font-size: .46rem; }
  .login-showcase-motto p { margin-top: 10px; font-size: 1.2rem; }
  .login-showcase-motto em { display: none; }
  .login-panel { min-height: 555px; padding: 42px 24px 30px; border: 0; border-radius: 0; }
  .login-heading h1 { margin-top: 17px; }
  .login-heading h1 span { font-size: 1.12rem; }
  .login-heading h1 strong { font-size: 3.35rem; }
  .login-heading .login-system-name { font-size: .94rem; }
  .login-copyright { margin-top: 27px; }
}

@media (max-width: 390px) {
  .login-showcase { min-height: 350px; }
  .login-panel { min-height: 535px; }
  .login-heading h1 strong { font-size: 2.95rem; }
  .login-input-wrap { min-height: 52px; }
}
