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

.auth-stage {
  position: fixed; left: 0; top: 0; width: 3432px; height: 941px;
  transform: translate3d(var(--ox, 0px), var(--oy, 0px), 0) scale(var(--k, 1));
  transform-origin: 0 0;
  overflow: hidden; background: #7f0d12;
}
.auth-art {
  position: absolute; inset: 0;
  background-image: url('../img/login-hero-wide.jpg?v=20261125g');
  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: 1805.95px; top: 96.98px; width: 682.01px; height: 694.4px;
  background: #fff; border-radius: 32.6px;
  padding: 42px 61.03px 0;
  box-sizing: border-box;
  container-type: inline-size;
  font-size: 16.72px;
}

.auth-mark {
  display: block; width: auto; height: 104px; margin: 0 auto 10px;
  object-fit: contain; filter: drop-shadow(0 6px 12px rgba(168, 13, 18, .18));
}

.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: 36px; 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; }

.auth-ribbon {
  position: absolute; left: 2038.66px; top: 731.38px; width: 449.3px; height: 60px;
  background: url('../img/login-ribbon.png?v=3') 0 0 / 100% 100% no-repeat;
  border-bottom-right-radius: 32.6px; 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; }
}

/* latar ambient: mengisi sisa ruang tanpa memotong kanvas */
.auth-bg {
  position: fixed; inset: -60px; z-index: 0;
  background: url('../img/login-hero-wide.jpg?v=20261125g') center/cover no-repeat;
  filter: blur(34px) saturate(1.05) brightness(.72);
  transform: scale(1.06);
}
.auth-bg:after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, rgba(0,0,0,0) 40%, rgba(28,3,5,.55) 100%);
}
.auth-stage { z-index: 1; }
@media (max-width: 820px) { .auth-bg { display: none; } }

/* ===== Tab Pelanggan / Staf & portal pelanggan ===== */
.auth-tabs {
  display: flex; gap: 5px; background: #f3f4f7; border: 1px solid #e7eaf0;
  border-radius: 14px; padding: 5px; margin: -10px 0 16px;
}
.auth-tabs button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; border: 0; border-radius: 10px; background: transparent; color: #66707f;
  font: 600 15px/1 inherit; cursor: pointer; transition: background .18s, color .18s, box-shadow .18s;
}
.auth-tabs button svg { width: 17px; height: 17px; }
.auth-tabs button:hover { color: #d81b21; }
.auth-tabs button.on { background: #fff; color: #d81b21; box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .28); }
.auth-mark.sm { height: 74px; margin-bottom: 6px; }
.auth-card h2.thin { font-size: 19px; font-weight: 600; color: #4a5261; margin-top: 6px; }
.auth-card form.compact .fld:first-of-type { margin-top: 22px; }
.auth-note { margin: 14px 0 0; text-align: center; font-size: 13.5px; line-height: 1.55; color: #7b8494; }
.auth-alert.ok { color: #15803d; background: #e9f9ef; border-color: #bfe9cd; }
.hide { display: none !important; }

@media (max-width: 900px) {
  .auth-tabs { margin: 0 0 16px; border-radius: 12px; }
  .auth-tabs button { height: 42px; font-size: 13px; gap: 6px; }
  .auth-tabs button svg { width: 15px; height: 15px; }
  .auth-mark.sm { height: 66px; }
  .auth-card h2.thin { font-size: 14px; }
  .auth-note { font-size: 12px; margin-top: 12px; }
  .auth-card form.compact .fld:first-of-type { margin-top: 12px; }
}

/* ===== Banner header login — sama di PC & HP, bisa diganti di Pengaturan ===== */
.auth-hero { margin: 0 0 16px; border-radius: 18px; overflow: hidden; background: #5b0309; line-height: 0;
  box-shadow: 0 10px 24px -10px rgba(91, 3, 9, .45); }
.auth-hero img { display: block; width: 100%; height: 130px; object-fit: contain; object-position: center;
  background: radial-gradient(120% 140% at 50% 40%, #8d0810 0%, #5b0309 70%); padding: 6px 10px; box-sizing: border-box; }
.auth-card.has-hero .auth-mark { display: none; }
.auth-card.has-hero { padding-top: 30px; }
.auth-card.has-hero .fld:first-of-type { margin-top: 20px; }

@media (min-width: 901px) {
  .auth-card.has-hero .meta { margin-top: 14px; }
  .auth-card.has-hero .btn-masuk { margin-top: 20px; }
  .auth-card.has-hero .auth-note { margin-top: 10px; }
}

@media (max-width: 900px) {
  html, body.auth-body { overflow: auto !important; height: auto !important; }
  body.auth-body { background: #7f0d12; }
  .auth-hero { margin: 0 0 14px; border-radius: 14px; }
  .auth-hero img { height: 104px; }
  .auth-card.has-hero { padding-top: 18px; }
}
