/* ==========================================================================
   Billing Istiqomah - Halaman Login
   Warna & font mengikuti theme-modern.css (admin panel).
   ========================================================================== */

:root {
  --au-dark-1: #0b2e2b;
  --au-dark-2: #0f3d38;
  /* --au-primary: #0d9488;
  --au-primary-dark: #0b7a71; */
  --au-primary: #0d2c94;
  --au-primary-dark: #290b7a;
  --au-primary-soft: #e6ecf6;
  --au-bg: #f2f5f8;
  --au-card: #ffffff;
  --au-border: #dbe2ea;
  --au-text: #334155;
  --au-heading: #0f172a;
  --au-muted: #64748b;
  --au-danger: #e11d48;
  --au-font: "Plus Jakarta Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body.auth-body {
  margin: 0;
  font-family: var(--au-font);
  font-size: 14px;
  color: var(--au-text);
  background: var(--au-bg);
  -webkit-font-smoothing: antialiased;
}

.auth-wrap { display: flex; min-height: 100vh; }

/* ---------- Panel brand ---------- */
.auth-brand {
  position: relative;
  flex: 0 0 44%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px;
  overflow: hidden;
  color: #fff;
  background:
    var(--au-dark-1);
}
.auth-brand:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: none;
  background-size: 22px 22px;
  pointer-events: none;
}
.auth-brand > * { position: relative; }
.auth-brand__top { display: flex; align-items: center; gap: 12px; }
.auth-brand__name { font-size: 18px; font-weight: 800; letter-spacing: 0.2px; }
.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 20px;
  color: #fff;
  background: var(--au-primary);
  box-shadow: none;
}
.auth-brand__copy h1 {
  margin: 0 0 14px;
  font-family: var(--au-font);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}
.auth-brand__copy p { max-width: 420px; margin: 0 0 24px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); }
.auth-features { list-style: none; margin: 0; padding: 0; }
.auth-features li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.auth-features i { color: #5eead4; font-size: 17px; }
.auth-brand__foot { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }

/* ---------- Panel form ---------- */
.auth-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 34px 28px;
  border-radius: 18px;
  background: var(--au-card);
  border: 1px solid #e5eaef;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 40px rgba(15, 23, 42, 0.08);
  animation: auFadeUp 0.4s ease both;
}
.auth-card__mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 22px; font-weight: 800; font-size: 16px; color: var(--au-heading); }
.auth-card__mobile-brand .auth-logo { width: 36px; height: 36px; font-size: 17px; }
.auth-card h2 { margin: 0 0 6px; font-family: var(--au-font); font-size: 24px; font-weight: 800; color: var(--au-heading); }
.auth-sub { margin: 0 0 24px; color: var(--au-muted); }
.auth-sub strong { color: var(--au-primary-dark); }

.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #475569; }
.auth-input { position: relative; }
.auth-input > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  text-align: center;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.18s;
}
.auth-input input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 42px;
  border: 1.5px solid var(--au-border);
  border-radius: 10px;
  font-family: var(--au-font);
  font-size: 14px;
  color: var(--au-heading);
  background: #fff;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.auth-input input::placeholder { color: #a0aec0; }
.auth-input input:focus { border-color: var(--au-primary); box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14); }
.auth-input input:focus + i,
.auth-input:focus-within > i { color: var(--au-primary); }
.auth-input__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}
.auth-input__toggle:hover { background: var(--au-bg); color: var(--au-primary); }

#captcha { text-transform: none; letter-spacing: 3px; font-weight: 700; }
#captcha::placeholder { letter-spacing: normal; font-weight: 400; }

.has-error .auth-input input { border-color: var(--au-danger); background: #fff8f9; }
.has-error .auth-input input:focus { box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12); }
.has-error .auth-input > i { color: var(--au-danger); }
.auth-error { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--au-danger); }
.auth-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--au-muted); }

.auth-captcha { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.auth-captcha img {
  display: block;
  height: 50px;
  width: 180px;
  border-radius: 10px;
  border: 1.5px solid var(--au-border);
  cursor: pointer;
  user-select: none;
}
.auth-captcha__refresh {
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--au-border);
  border-radius: 10px;
  background: #fff;
  color: var(--au-primary);
  font-size: 17px;
  cursor: pointer;
  transition: all 0.18s;
}
.auth-captcha__refresh:hover { border-color: var(--au-primary); background: var(--au-primary-soft); }
.auth-captcha__refresh.is-spinning i { animation: auSpin 0.7s linear infinite; }

.auth-alert { padding: 10px 14px; margin-bottom: 16px; border-radius: 10px; font-size: 13px; }
.auth-alert--info { color: #075985; background: #f0f9ff; border-left: 4px solid #0ea5e9; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 20px; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; color: var(--au-text); cursor: pointer; }
.auth-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--au-primary); cursor: pointer; }
.auth-link { font-weight: 600; color: var(--au-primary); }
.auth-link:hover, .auth-link:focus { color: var(--au-primary-dark); }

.auth-submit {
  display: block;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  font-family: var(--au-font);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--au-primary);
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.auth-submit:hover { background: var(--au-primary-dark); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:focus-visible { outline: 3px solid rgba(13, 148, 136, 0.35); outline-offset: 2px; }
.auth-submit__loading { display: none; }
.auth-submit.is-loading { opacity: 0.85; cursor: wait; transform: none; }
.auth-submit.is-loading .auth-submit__text { display: none; }
.auth-submit.is-loading .auth-submit__loading { display: inline; }

.auth-foot { margin: 22px 0 0; text-align: center; font-size: 12.5px; color: var(--au-muted); }
.auth-versi { margin: 6px 0 0; text-align: center; font-size: 11.5px; color: #a0aec0; }

@keyframes auFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes auSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .auth-card, .auth-captcha__refresh.is-spinning i { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .auth-brand { display: none; }
  .auth-main {
    background:
      var(--au-bg);
  }
  .auth-card__mobile-brand { display: flex; }
}
@media (max-width: 480px) {
  .auth-main { padding: 20px 16px; align-items: flex-start; }
  .auth-card { padding: 26px 20px 22px; border-radius: 14px; }
  .auth-captcha img { width: 150px; height: auto; }
}
