:root {
  --charcoal-950: #17191d;
  --charcoal-900: #1d2025;
  --charcoal-850: #22262c;
  --charcoal-800: #292d34;
  --charcoal-700: #363b44;
  --charcoal-600: #525866;

  --blue: #246bfd;
  --blue-dark: #1554dc;
  --blue-soft: #eaf2ff;

  --green: #6cbf67;

  --text-main: #20232a;
  --text-secondary: #667085;
  --text-muted: #8b93a4;

  --border: #dde2ea;
  --border-soft: #edf0f4;

  --surface: #ffffff;
  --surface-soft: #f7f8fa;

  --danger: #dc3545;

  --radius-main: 28px;
  --radius-card: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 92% 4%,
      rgba(36, 107, 253, .10) 0,
      transparent 23%),
    radial-gradient(circle at 5% 92%,
      rgba(108, 191, 103, .08) 0,
      transparent 24%),
    var(--charcoal-950);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font-family: inherit;
}

a {
  text-decoration: none;
}

/* =========================================================
           PAGE
           ========================================================= */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 28px;
  overflow: hidden;
  position: relative;
}

.login-page::before {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;

  top: -210px;
  right: -100px;

  border-radius: 50%;
  background: rgba(36, 107, 253, .16);
  pointer-events: none;
}

.login-page::after {
  content: "";
  position: fixed;
  width: 360px;
  height: 360px;

  left: -220px;
  bottom: -150px;

  border-radius: 50%;
  background: rgba(255, 255, 255, .035);
  pointer-events: none;
}

.login-wrapper {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 1440px;
  min-height: 820px;

  background: #fff;

  border-radius: var(--radius-main);
  overflow: hidden;

  box-shadow:
    0 35px 100px rgba(0, 0, 0, .30),
    0 10px 30px rgba(0, 0, 0, .15);

  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(470px, .75fr);
}

/* =========================================================
           LEFT / BRAND PANEL
           ========================================================= */

.brand-panel {
  position: relative;

  min-width: 0;

  background:
    linear-gradient(140deg,
      #f9fafc 0%,
      #f4f6f9 40%,
      #eef2f7 100%);

  padding: 56px 64px 44px;

  overflow: hidden;

  display: flex;
  flex-direction: column;
}

.brand-panel::before {
  content: "";

  position: absolute;
  width: 860px;
  height: 860px;

  right: -430px;
  top: 80px;

  border-radius: 50%;

  border: 70px solid rgba(36, 107, 253, .035);
}

.brand-panel::after {
  content: "";

  position: absolute;

  width: 720px;
  height: 275px;

  left: -140px;
  bottom: -160px;

  border-radius: 50%;

  background: var(--charcoal-900);
  transform: rotate(10deg);
}

.brand-header,
.brand-content,
.brand-footer {
  position: relative;
  z-index: 3;
}

/* =========================================================
           LOGO
           ========================================================= */

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-image {
  /* width: 64px; */
  /* height: 64px; */
  width: 132px;
  height: auto;

  object-fit: contain;
  flex-shrink: 0;
}

.brand-logo-symbol {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
}

.brand-logo-title {
  margin: 0;

  color: var(--charcoal-900);

  font-size: 2rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
}

.brand-logo-subtitle {
  margin-top: 5px;

  color: var(--charcoal-600);

  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .32em;
}

.brand-tagline {
  margin-top: 5px;

  color: var(--text-muted);
  font-size: .78rem;
}

/* =========================================================  
           BRAND CONTENT
           ========================================================= */

.brand-content {
  flex: 1;

  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr);

  align-items: center;
  gap: 28px;

  /* padding-top: 45px; */
}

.brand-copy {
  max-width: 430px;
  padding-bottom: 60px;
}

.brand-heading {
  margin: 0;

  font-size: clamp(2.3rem, 3vw, 3.25rem);
  font-weight: 780;

  letter-spacing: -.045em;
  line-height: 1.06;

  color: var(--charcoal-900);
}

.brand-heading span {
  color: var(--blue);
}

.heading-line {
  width: 52px;
  height: 4px;

  margin: 26px 0 24px;

  border-radius: 10px;
  background: var(--green);
}

.brand-description {
  margin: 0;

  max-width: 400px;

  color: var(--charcoal-600);

  font-size: .96rem;
  line-height: 1.8;
}

/* =========================================================
           BENEFITS
           ========================================================= */

.benefit-list {
  margin-top: 34px;

  display: flex;
  flex-direction: column;
  gap: 18px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.benefit-icon {
  width: 46px;
  height: 46px;

  flex: 0 0 46px;

  border-radius: 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;

  box-shadow:
    0 8px 25px rgba(23, 25, 29, .06),
    inset 0 0 0 1px rgba(23, 25, 29, .035);

  color: var(--blue);
}

.benefit-icon svg {
  width: 21px;
  height: 21px;
}

.benefit-item:nth-child(2) .benefit-icon {
  color: var(--green);
}

.benefit-text strong {
  display: block;

  color: var(--charcoal-900);

  font-size: .88rem;
  font-weight: 700;
}

.benefit-text small {
  display: block;

  margin-top: 3px;

  color: var(--text-muted);

  font-size: .76rem;
  line-height: 1.4;
}

/* =========================================================
           LIGHTWEIGHT INLINE SVG ILLUSTRATION
           ========================================================= */

.illustration-area {
  align-self: end;
  width: 100%;

  display: flex;
  align-items: flex-center;
  justify-content: center;

  position: relative;
}

.innovation-illustration {
  /* width: 100%; */
  max-width: 680px;
  height: auto;

  display: block;

  object-fit: contain;

  user-select: none;
  pointer-events: none;

  filter: drop-shadow(0 20px 22px rgba(27, 36, 51, .05));
}

/* =========================================================
           FOOTER
           ========================================================= */

.brand-footer {
  margin-top: auto;

  color: rgba(255, 255, 255, .76);

  font-size: .75rem;
}

/* =========================================================
           RIGHT PANEL
           ========================================================= */

.form-panel {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 52px;

  background:
    radial-gradient(circle at 100% 0,
      rgba(36, 107, 253, .035),
      transparent 30%),
    #fff;
}

.form-card {
  width: 100%;
  max-width: 490px;
}

/* =========================================================
           FORM HEADER
           ========================================================= */

.login-header {
  display: flex;
  align-items: center;
  gap: 20px;

  margin-bottom: 44px;
}

.login-avatar {
  width: 72px;
  height: 72px;

  flex: 0 0 72px;

  border-radius: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(145deg,
      #f4f7fa,
      #e9edf3);

  color: var(--charcoal-800);
}

.login-avatar svg {
  width: 38px;
  height: 38px;
}

.login-title {
  margin: 0;

  color: var(--charcoal-900);

  font-size: 2rem;
  font-weight: 760;

  letter-spacing: -.035em;
}

.login-subtitle {
  margin: 7px 0 0;

  color: var(--text-secondary);

  font-size: .95rem;
}

/* =========================================================
           FORM
           ========================================================= */

.form-label {
  margin-bottom: 9px;

  color: var(--charcoal-800);

  font-size: .88rem;
  font-weight: 650;
}

.form-group-login {
  margin-bottom: 23px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;

  left: 17px;
  top: 50%;

  transform: translateY(-50%);

  width: 21px;
  height: 21px;

  color: #7a8394;

  pointer-events: none;

  z-index: 3;
}

.login-control {
  width: 100%;
  height: 58px;

  border: 1px solid #d9dee7;
  border-radius: 12px;

  padding:
    10px 50px 10px 52px;

  background: #fff;

  color: var(--charcoal-900);

  font-size: .95rem;

  outline: none;

  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.login-control::placeholder {
  color: #9ba3b2;
}

.login-control:hover {
  border-color: #bcc4d0;
}

.login-control:focus {
  border-color: var(--charcoal-600);

  box-shadow:
    0 0 0 4px rgba(41, 45, 52, .08);

  background: #fff;
}

.login-control.is-invalid {
  border-color: var(--danger);
}

.login-control.is-invalid:focus {
  box-shadow:
    0 0 0 4px rgba(220, 53, 69, .10);
}

.toggle-password {
  position: absolute;

  top: 50%;
  right: 15px;

  transform: translateY(-50%);

  border: 0;
  background: transparent;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #7a8394;

  border-radius: 8px;

  cursor: pointer;

  transition:
    background .15s ease,
    color .15s ease;
}

.toggle-password:hover {
  background: #f1f3f6;
  color: var(--charcoal-900);
}

.toggle-password svg {
  width: 20px;
  height: 20px;
}

.invalid-feedback {
  display: block;

  margin-top: 7px;

  font-size: .78rem;
}

/* =========================================================
           OPTIONS
           ========================================================= */

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin: 3px 0 28px;
}

.form-check {
  min-height: auto;
  margin: 0;

  display: flex;
  align-items: center;
  gap: 9px;
}

.form-check-input {
  width: 19px;
  height: 19px;

  margin: 0;

  border: 1px solid #aab2c0;

  cursor: pointer;

  box-shadow: none !important;
}

.form-check-input:checked {
  background-color: var(--charcoal-800);
  border-color: var(--charcoal-800);
}

.form-check-label {
  margin: 0;

  color: var(--charcoal-700);

  font-size: .82rem;

  cursor: pointer;
}

.forgot-link {
  color: var(--charcoal-800);

  font-size: .82rem;
  font-weight: 650;

  transition: color .15s ease;
}

.forgot-link:hover {
  color: var(--blue);
}

/* =========================================================
           LOGIN BUTTON
           ========================================================= */

.btn-login {
  width: 100%;
  min-height: 58px;

  border: none;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background:
    linear-gradient(135deg,
      var(--charcoal-800),
      var(--charcoal-950));

  color: #fff;

  font-size: .96rem;
  font-weight: 650;

  box-shadow:
    0 11px 24px rgba(23, 25, 29, .18);

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

.btn-login:hover {
  color: #fff;

  transform: translateY(-1px);

  box-shadow:
    0 15px 30px rgba(23, 25, 29, .24);

  background:
    linear-gradient(135deg,
      #31363e,
      #17191d);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login svg {
  width: 19px;
  height: 19px;
}

/* =========================================================
           DIVIDER
           ========================================================= */

.login-divider {
  display: flex;
  align-items: center;

  gap: 15px;

  margin: 30px 0;
}

.login-divider::before,
.login-divider::after {
  content: "";

  flex: 1;

  height: 1px;

  background: var(--border-soft);
}

.login-divider span {
  color: #979fac;

  font-size: .78rem;
}

/* =========================================================
           GUIDE BUTTON
           ========================================================= */

.btn-guide {
  width: 100%;
  min-height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border: 1px solid #cfd5df;
  border-radius: 12px;

  background: #fff;

  color: var(--charcoal-800);

  font-size: .91rem;
  font-weight: 650;

  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease;
}

.btn-guide:hover {
  color: var(--charcoal-950);

  background: var(--surface-soft);

  border-color: #aeb6c3;
}

.btn-guide svg {
  width: 20px;
  height: 20px;
}

/* =========================================================
           SECURITY INFO
           ========================================================= */

.security-box {
  margin-top: 35px;
  padding: 24px;

  border-radius: 16px;

  background: #f7f8fa;

  display: flex;
  align-items: center;
  gap: 15px;
}

.security-icon {
  width: 43px;
  height: 43px;

  flex: 0 0 43px;

  border-radius: 13px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;

  color: var(--charcoal-800);

  box-shadow:
    0 4px 14px rgba(23, 25, 29, .05);
}

.security-icon svg {
  width: 23px;
  height: 23px;
}

.security-text strong {
  display: block;

  color: var(--charcoal-800);

  font-size: .78rem;
  font-weight: 650;
}

.security-text small {
  display: block;

  margin-top: 3px;

  color: var(--text-muted);

  font-size: .72rem;
}

/* =========================================================
           ERROR ALERT
           ========================================================= */

.login-alert {
  margin: -17px 0 25px;

  padding: 12px 15px;

  border: 0;
  border-left: 3px solid #dc3545;

  border-radius: 8px;

  background: #fff4f5;

  color: #a12a35;

  font-size: .81rem;
}

/* =========================================================
           TABLET
           ========================================================= */

@media (max-width: 1199.98px) {

  .login-wrapper {
    grid-template-columns: 1fr 470px;
  }

  .brand-panel {
    padding-left: 45px;
    padding-right: 45px;
  }

  .brand-content {
    grid-template-columns: 1fr;
  }

  .illustration-area {
    position: absolute;

    width: 500px;

    bottom: 30px;
    right: -120px;

    opacity: .42;
  }

  .brand-copy {
    position: relative;
    z-index: 5;

    max-width: 420px;
  }
}

/* =========================================================
           MOBILE / TABLET PORTRAIT
           ========================================================= */

@media (max-width: 991.98px) {

  .login-page {
    padding: 18px;
    align-items: flex-start;
  }

  .login-wrapper {
    min-height: auto;

    grid-template-columns: 1fr;

    max-width: 680px;
  }

  .brand-panel {
    min-height: auto;

    padding: 34px 38px;

    border-bottom: 1px solid var(--border-soft);
  }

  .brand-panel::after {
    display: none;
  }

  .brand-content {
    padding-top: 28px;

    display: block;
  }

  .brand-copy {
    padding-bottom: 0;

    max-width: 100%;
  }

  .brand-heading {
    max-width: 500px;

    font-size: 2.25rem;
  }

  .brand-description {
    max-width: 560px;
  }

  .benefit-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 12px;
  }

  .benefit-item {
    align-items: flex-start;
  }

  .benefit-text small {
    display: none;
  }

  .illustration-area,
  .brand-footer {
    display: none;
  }

  .form-panel {
    padding: 44px 38px;
  }
}

/* =========================================================
           MOBILE
           ========================================================= */

@media (max-width: 575.98px) {

  .login-page {
    padding: 0;

    background: #fff;
  }

  .login-wrapper {
    border-radius: 0;
    box-shadow: none;

    max-width: none;
    min-height: 100vh;
  }

  .brand-panel {
    padding: 25px 23px;

    background:
      linear-gradient(135deg,
        #f7f8fa,
        #eef1f5);
  }

  .brand-logo-symbol {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brand-logo-image {
    /* width: 50px;
        height: 50px; */
    width: 122px;
    height: auto;
  }

  .brand-logo-title {
    font-size: 1.6rem;
  }

  .brand-logo-subtitle {
    font-size: .65rem;
  }

  .brand-tagline {
    display: none;
  }

  .brand-content {
    padding-top: 22px;
  }

  .brand-heading {
    font-size: 1.9rem;
  }

  .heading-line {
    margin: 18px 0 17px;
  }

  .brand-description {
    font-size: .84rem;
    line-height: 1.65;
  }

  .benefit-list {
    display: none;
  }

  .form-panel {
    align-items: flex-start;

    padding: 36px 23px 32px;
  }

  .login-header {
    margin-bottom: 34px;

    gap: 14px;
  }

  .login-avatar {
    width: 58px;
    height: 58px;

    flex-basis: 58px;

    border-radius: 18px;
  }

  .login-avatar svg {
    width: 31px;
    height: 31px;
  }

  .login-title {
    font-size: 1.65rem;
  }

  .login-subtitle {
    font-size: .85rem;
  }

  .login-control {
    height: 56px;
  }

  .security-box {
    padding: 18px;
  }
}

/* =========================================================
           SMALL MOBILE
           ========================================================= */

@media (max-width: 375px) {

  .login-options {
    align-items: flex-start;
    flex-direction: column;

    gap: 12px;
  }
}

/* =========================================================
           REDUCE MOTION
           ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============================================================
   CAPTCHA
   Enterprise Compact Layout
============================================================ */

.captcha-group {
  margin-bottom: 23px;
}


/* ============================================================
   CAPTCHA ROW
============================================================ */

.captcha-row {
  display: grid;

  /*
     * CAPTCHA dibuat lebih pendek.
     * Input mengambil area lebih besar.
     */
  grid-template-columns: 180px minmax(0, 1fr);

  gap: 14px;

  align-items: stretch;

  width: 100%;
}


/* ============================================================
   CAPTCHA BOX
============================================================ */

.captcha-box {
  position: relative;

  width: 100%;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  border: 1px solid #d6deea;

  border-radius: 12px;

  background: #f2f6fc;

  cursor: pointer;

  user-select: none;

  transition:
    border-color .18s ease,
    background-color .18s ease,
    box-shadow .18s ease,
    transform .12s ease;
}


/* Hover */
.captcha-box:hover {
  border-color: #aebed3;

  background: #f7faff;

  box-shadow:
    0 3px 12px rgba(43, 70, 107, .08);
}


/* Keyboard focus */
.captcha-box:focus {
  outline: none;

  border-color: #7fa8dc;

  box-shadow:
    0 0 0 3px rgba(78, 131, 196, .11);
}


/* Click feedback */
.captcha-box:active {
  transform: scale(.992);
}


/* ============================================================
   CAPTCHA IMAGE
============================================================ */

.captcha-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: fill;

  user-select: none;

  pointer-events: none;

  -webkit-user-drag: none;
}


/* ============================================================
   CAPTCHA INPUT
============================================================ */

.captcha-input-wrapper {
  width: 100%;
  min-width: 0;
}


/*
 * Jangan atur background, border, radius, dan warna khusus.
 *
 * Biarkan menggunakan .input-wrapper + .login-control
 * yang sama dengan username dan password.
 */
.captcha-input-wrapper .login-control {
  width: 100%;

  text-transform: uppercase;
}


/*
 * Placeholder tetap normal.
 */
.captcha-input-wrapper .login-control::placeholder {
  text-transform: none;
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 768px) {

  .captcha-row {
    grid-template-columns:
      165px minmax(0, 1fr);

    gap: 10px;
  }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 520px) {

  /*
     * Tetap satu baris.
     */
  .captcha-row {
    grid-template-columns:
      135px minmax(0, 1fr);

    gap: 8px;
  }

}