/* ===== Login RRA Network Billing — replika gambar referensi ===== */
html, body.auth-body { margin: 0; padding: 0; height: 100%; background: #7f0d12; }
body.auth-body { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }

.auth-stage {
  position: fixed; left: 50%; top: 50%; width: 1672px; height: 941px;
  transform: translate(-50%, -50%) scale(var(--k, 1));
  transform-origin: center center;
  overflow: hidden; background: #7f0d12;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}
.auth-art {
  position: absolute; inset: 0;
  background-image: url('../img/login-hero.jpg');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Kartu form menimpa kartu putih pada ilustrasi (posisi relatif 1672x941) */
.auth-card {
  position: absolute; left: 925.95px; top: 96.98px; width: 682.01px; height: 745.04px;
  background: #fff; border-radius: 32.6px;
  padding: 59.36px 61.03px 0;
  box-sizing: border-box;
  container-type: inline-size;
  font-size: 16.72px;
}

.auth-card h1 {
  margin: 0; text-align: center; font-size: 54.01px; line-height: 1.1;
  font-weight: 800; color: #0d0f14; letter-spacing: -.02em;
}
.auth-card h2 {
  margin: 5.02px 0 0; text-align: center; font-size: 31.77px; line-height: 1.15;
  font-weight: 800; color: #14161c; letter-spacing: -.01em;
}
.auth-card .tagline {
  margin: 3.34px 0 0; text-align: center; font-size: 20.23px; color: #4a5261; font-weight: 400;
}

.fld { position: relative; margin-top: 16.72px; }
.fld:first-of-type { margin-top: 36.95px; }
.fld input {
  width: 100%; height: 63.03px; box-sizing: border-box;
  border: 1.5px solid #e4e7ec; border-radius: 13.04px; background: #fff;
  padding: 0 50.16px 0 52.67px; font-size: 20.06px; color: #14161c; font-family: inherit;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.fld input::placeholder { color: #7d8695; opacity: 1; }
.fld input:focus { border-color: #d81b21; box-shadow: 0 0 0 3.68px rgba(216, 27, 33, .10); }
.fld .pre {
  position: absolute; left: 17.56px; top: 50%; transform: translateY(-50%);
  width: 20.9px; height: 20.9px; color: #7d8695; pointer-events: none;
}
.fld .eye {
  position: absolute; right: 12.54px; top: 50%; transform: translateY(-50%);
  width: 33.44px; height: 33.44px; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; color: #4a5261; padding: 0; border-radius: 6.69px;
}
.fld .eye svg { width: 22.57px; height: 22.57px; }
.fld .eye:hover { color: #d81b21; }

.meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20.06px; padding-left: 10.37px; font-size: 19.4px; color: #14161c;
}
.remember { display: flex; align-items: center; gap: 7.52px; cursor: pointer; font-weight: 500; }
.remember input { width: 22.74px; height: 22.74px; accent-color: #d81b21; margin: 0; cursor: pointer; }
.linky { color: #d81b21; font-weight: 700; text-decoration: none; }
.linky:hover { text-decoration: underline; }

.btn-masuk {
  width: 100%; height: 63.03px; margin-top: 42.64px; border: 0; border-radius: 13.04px;
  display: flex; align-items: center; justify-content: center; gap: 13.38px;
  color: #fff; font-family: inherit; font-size: 22.57px; font-weight: 700; cursor: pointer;
  background: linear-gradient(180deg, #e8232b 0%, #cf1119 45%, #a80d12 100%);
  box-shadow: 0 9.2px 19.23px -5.85px rgba(168, 13, 18, .55), inset 0 1px 0 rgba(255,255,255,.28);
  transition: filter .15s, transform .12s;
}
.btn-masuk svg { width: 22.57px; height: 22.57px; }
.btn-masuk:hover { filter: brightness(1.06); }
.btn-masuk:active { transform: translateY(1px); }
.btn-masuk:disabled { opacity: .75; cursor: default; }

.sep {
  display: flex; align-items: center; gap: 17.56px; margin: 25.08px 0 22.57px;
  color: #6b7280; font-size: 18.06px;
}
.sep::before, .sep::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }

.btn-google {
  width: 100%; height: 58.02px; border: 1.5px solid #e4e7ec; border-radius: 13.04px; background: #fff;
  display: flex; align-items: center; justify-content: center; gap: 10.87px;
  font-family: inherit; font-size: 23.24px; font-weight: 600; color: #14161c; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-google svg { width: 21.74px; height: 21.74px; }
.btn-google:hover { background: #f8f9fb; border-color: #d7dbe2; }

.auth-ribbon {
  position: absolute; left: 926.96px; top: 752.07px; width: 681.01px; height: 90.96px;
  background: url('../img/login-ribbon.png') 0 0 / 100% 100% no-repeat;
  pointer-events: none; z-index: 2;
}

.auth-alert {
  position: absolute; left: 61.03px; right: 61.03px; bottom: 4.18px;
  display: none; text-align: center; font-size: 15.38px; line-height: 1.35;
  color: #b91c1c; background: #fdeaea; border: 1px solid #f7cfcf;
  border-radius: 8.36px; padding: 9.2px 11.7px; z-index: 3;
}
.auth-alert.show { display: block; }

/* ===== Mobile / tablet ===== */
@media (max-width: 900px) {
  .auth-stage {
    position: static; left: auto; top: auto; width: 100%; height: auto;
    transform: none; min-height: 100vh; padding: 26px 0 34px;
    background:
      radial-gradient(700px 420px at 80% -10%, rgba(255, 215, 106, .35), transparent 60%),
      linear-gradient(160deg, #7f0d12 0%, #b3121a 55%, #d81b21 100%);
  }
  .auth-art { display: none; }
  .auth-card {
    position: static; width: min(430px, calc(100vw - 32px)); height: auto;
    margin: 0 auto; padding: 30px 24px 26px; box-sizing: border-box;
    background: #fff; border-radius: 22px; box-shadow: 0 24px 60px -18px rgba(60, 5, 8, .55);
    font-size: 14px;
  }
  .auth-card h1 { font-size: 27px; }
  .auth-card h2 { font-size: 16px; margin-top: 4px; }
  .auth-card .tagline { font-size: 12.5px; margin-top: 8px; }
  .fld { margin-top: 12px; }
  .fld:first-of-type { margin-top: 22px; }
  .fld input { height: 50px; border-radius: 11px; padding: 0 44px 0 42px; font-size: 14px; }
  .fld .pre { left: 14px; width: 18px; height: 18px; }
  .fld .eye { right: 8px; width: 30px; height: 30px; }
  .fld .eye svg { width: 18px; height: 18px; }
  .meta { margin-top: 14px; font-size: 13px; }
  .remember { gap: 7px; }
  .remember input { width: 15px; height: 15px; }
  .btn-masuk { height: 50px; margin-top: 20px; border-radius: 11px; gap: 10px; font-size: 15px; }
  .btn-masuk svg { width: 18px; height: 18px; }
  .sep { margin: 18px 0 16px; font-size: 13px; gap: 12px; }
  .btn-google { height: 46px; border-radius: 11px; gap: 9px; font-size: 14px; }
  .btn-google svg { width: 18px; height: 18px; }
  .auth-alert { position: static; margin-top: 14px; font-size: 12.5px; padding: 9px 11px; border-radius: 9px; }
  .auth-ribbon { display: none; }
}
