:root {
  --gold: #f5bc42;
  --gold-light: #ffd76a;
  --dark: #050911;
  --dark2: #0b111d;
  --text: #e8edf5;
  --muted: #9ba8ba;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: #050911;
  color: var(--text);
  overflow: hidden;
}

.login-page {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  overflow: hidden;
  background: #050911;
}

.login-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(3, 7, 13, 0.05) 0%, rgba(3, 7, 13, 0.08) 40%, rgba(3, 7, 13, 0.65) 68%, rgba(3, 7, 13, 0.96) 100%), url("../images/web/login-bg.jpg");
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
  background-color: #050911;
}

.login-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 13, 0.05), rgba(3, 7, 13, 0.22) 60%, rgba(3, 7, 13, 0.72));
  pointer-events: none;
}

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

.login-left {
  width: 75%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 40px 5vw;
}

.login-intro {
  max-width: 570px;
  margin-top: -30px;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.55);
}

.intro-line {
  width: 58px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 20px;
  border-radius: 3px;
}

.login-intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 15px;
  color: #fff;
}

.login-intro h1 span {
  display: block;
  color: var(--gold-light);
}

.login-intro p {
  font-size: 0.85rem;
  letter-spacing: 3px;
  font-weight: 600;
  color: #f1f4f8;
  margin: 0;
}

.intro-bottom {
  margin-top: 260px;
}

.intro-bottom h2 {
  font-family: cursive;
  font-size: 2rem;
  font-weight: 400;
  margin: 0;
  color: #fff;
}

.intro-bottom small {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: #fff;
}

.login-right {
  width: 42%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 5vw 30px 20px;
}

.login-card {
  width: 100%;
  max-width: 390px;
  max-height: calc(100vh - 50px);
  overflow-y: auto;
  padding: 30px;
  background: rgba(7, 13, 23, 0.88);
  border: 1px solid rgba(245, 188, 66, 0.45);
  border-radius: 18px;
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
}

.login-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 15px rgba(245, 188, 66, 0.8);
}

.login-logo {
  text-align: center;
  margin-bottom: 12px;
}

.login-logo img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.login-brand {
  text-align: center;
}

.login-brand h2 {
  font-size: 1.8rem;
  letter-spacing: 3px;
  font-weight: 800;
  margin: 4px 0 5px;
  color: #fff;
}

.login-brand p {
  font-size: 0.6rem;
  letter-spacing: 1.7px;
  color: #aeb9ca;
  margin: 0;
}

.gold-line {
  width: 55px;
  height: 2px;
  background: var(--gold);
  margin: 16px auto 16px;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(245, 188, 66, 0.4);
}

.welcome h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #fff;
}

.welcome p {
  font-size: 0.88rem;
  color: #aeb9ca;
  margin: 0 0 15px;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.input-box {
  position: relative;
}

.input-box > i:first-child {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ba8ba;
  font-size: 0.9rem;
  z-index: 2;
}

.form-control-custom {
  width: 100%;
  height: 40px;
  padding: 0 45px 0 45px;
  background: rgba(16, 25, 39, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
  transition: 0.2s;
}

.form-control-custom:-webkit-autofill,
.form-control-custom:-webkit-autofill:hover,
.form-control-custom:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0px 1000px #070a12 inset !important; /* Sesuaikan warna latar gelap Anda */
  caret-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-control-custom::placeholder {
  color: #7f8da0;
}

.form-control-custom:focus {
  border: 1px solid color-mix(in srgb, var(--gold) 15%, transparent) !important;
  /*box-shadow: 0 0 0 3px rgba(245, 188, 66, .08);*/
  background: rgba(16, 25, 39, 0.95);
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: #8492a5;
  padding: 4px;
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--gold);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5px 1px 20px;
  font-size: 0.72rem;
}

.remember {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #cbd5e1;
  cursor: pointer;
}

/* Reset dan kustomisasi tampilan checkbox */
.login-options input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background-color: #070a12 !important; /* Latar belakang senada input */
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  vertical-align: middle;
  margin-right: 6px;
  transition: all 0.2s ease;
}

/* Efek saat checkbox dicentang */
.login-options input[type="checkbox"]:checked {
  background-color: #f5bc42 !important; /* Warna aksen gold penuh saat aktif */
  border-color: #f5bc42 !important;
}

/* Ikon centang di dalam checkbox */
.login-options input[type="checkbox"]:checked::after {
  content: "✓";
  font-size: 11px;
  color: #070a12;
  font-weight: bold;
  line-height: 1;
}

/* Efek hover pada checkbox */
.login-options input[type="checkbox"]:hover {
  border-color: rgba(245, 188, 66, 0.4) !important;
}

.forgot {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.forgot:hover {
  color: var(--gold-light);
}

.btn-login {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #ffd15a, #e9a91e);
  color: #111827;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 22px rgba(245, 188, 66, 0.18);
  transition: 0.2s;
  cursor: pointer;
}

.btn-login:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ffdc76, #f0b52e);
  box-shadow: 0 10px 28px rgba(245, 188, 66, 0.3);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login i {
  margin-right: 8px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #718096;
  font-size: 0.7rem;
}

.login-divider:before,
.login-divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(148, 163, 184, 0.22);
}

.security-note {
  text-align: center;
  color: #718096;
  font-size: 0.65rem;
  line-height: 1.5;
  margin: 0;
}

.login-footer {
  text-align: center;
  margin-top: 25px;
  color: #718096;
  font-size: 0.62rem;
}

.login-footer strong {
  color: #aeb9ca;
}

.alert-login {
  /*border-radius: 9px;*/
  /*font-size: .75rem;*/
  /*padding: 10px 12px;*/
  /*margin-bottom: 5px;*/
  /*background: rgba(220, 53, 69, .12);*/
  /*border: 1px solid rgba(220, 53, 69, .3);*/
  color: #ff9ba5;
  font-size: 0.8rem;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
  padding: 10px;
  border-radius: 6px;
}

.loading {
  display: none;
}

.btn-login.loading .normal-text {
  display: none;
}

.btn-login.loading .loading {
  display: inline-block;
}

.spinner-border-sm {
  width: 14px;
  height: 14px;
  border-width: 2px;
  margin-right: 7px;
}

.login-card::-webkit-scrollbar {
  width: 4px;
}

.login-card::-webkit-scrollbar-track {
  background: transparent;
}

.login-card::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 4px;
}

.swal2-popup {
  font-size: 0.85rem !important;
  background-color: var(--dark2) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(245, 188, 66, 0.2);
  border-radius: 8px !important;
}

.swal-title-small {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  /*color: #ffffff !important;*/
}
.swal-text-small {
  font-size: 0.78rem !important;
  /*color: #e2e8f0 !important;*/
}
.swal-btn-small {
  font-size: 0.75rem !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
}

.invalid-feedback {
  font-size: 0.75rem;
  display: none;
}

@media (max-width: 1100px) {
  .login-left {
    width: 52%;
    padding-left: 4vw;
  }

  .login-right {
    width: 48%;
    padding-right: 3vw;
  }

  .login-card {
    padding: 32px 30px 25px;
  }

  .login-intro h1 {
    font-size: 3rem;
  }
}

@media (max-width: 991.98px) {
  body {
    overflow: auto;
  }

  .login-page {
    height: auto;
    min-height: 100vh;
  }

  .login-bg {
    background-position: center;
  }

  .login-overlay {
    background: rgba(3, 7, 13, 0.72);
  }

  .login-content {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 18px;
  }

  .login-left {
    display: none;
  }

  .login-right {
    width: 100%;
    height: auto;
    padding: 0;
    display: flex;
    justify-content: center;
  }

  .login-card {
    max-width: 480px;
    padding: 30px 25px 25px;
    border-radius: 18px;
    max-height: none;
  }

  .login-logo img {
    width: 72px;
    height: 72px;
  }

  .login-brand h2 {
    font-size: 1.5rem;
  }

  .welcome h3 {
    font-size: 1.45rem;
  }
}

/* TABLET */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .login-bg {
    background-size: cover;
    background-position: center center;
  }
}

/* MOBILE */
@media (max-width: 767.98px) {
  .login-bg {
    background-size: cover;
    background-position: center center;
  }
}

@media (max-width: 480px) {
  .login-content {
    padding: 15px;
  }

  .login-card {
    padding: 25px 20px 22px;
  }

  .login-logo img {
    width: 65px;
    height: 65px;
  }

  .login-brand h2 {
    font-size: 1.35rem;
    letter-spacing: 2px;
  }

  .login-brand p {
    font-size: 0.52rem;
  }

  .welcome h3 {
    font-size: 1.3rem;
  }

  .welcome p {
    font-size: 0.78rem;
  }

  .form-control-custom,
  .btn-login {
    height: 49px;
  }

  .login-options {
    font-size: 0.68rem;
  }
}
