/* =======================================================================
   HOME & LOGIN — Telkom Property Area Maluku
   File terpisah dari style.css lama agar tidak mengganggu halaman
   isi-ba.php / admin dashboard yang sudah berjalan.
   ======================================================================= */

.tp-home, .tp-login {
  font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--teks);
  background: var(--abu);
}

.tp-home a { text-decoration: none; }

/* ---------------- Navbar ---------------- */
.tp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  padding: 12px 32px;
  box-shadow: 0 2px 14px -6px rgba(20, 30, 45, .12);
}

.tp-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tp-nav-brand img {
  height: 100px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.tp-nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.tp-nav-brand-text strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--teks);
}

.tp-nav-brand-text span {
  font-size: 11px;
  color: var(--teks-lemah);
  font-weight: 500;
}

.tp-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.tp-nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: #4b5563;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.tp-nav-links a:hover,
.tp-nav-links a.active {
  color: var(--merah);
  border-color: var(--merah);
}

.tp-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--merah-terang), var(--merah-gelap));
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow-merah);
  transition: transform .15s, filter .15s;
  white-space: nowrap;
}

.tp-nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

@media (max-width: 860px) {
  .tp-nav-links { display: none; }
}

/* ---------------- Hero ---------------- */
.tp-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eef2f7 0%, #e7ecf3 100%);
  padding: 56px 32px 90px;
}

.tp-hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.tp-hero-label {
  display: inline-block;
  color: var(--merah);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .8px;
  margin-bottom: 14px;
}

.tp-hero h1 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 44px;
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--teks);
}

.tp-hero h1 .accent {
  color: var(--merah);
  display: block;
}

.tp-hero p.lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--teks-lemah);
  max-width: 480px;
  margin: 0 0 30px;
}

.tp-hero-features {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.tp-hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 170px;
}

.tp-hero-feature .ic {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff0f2, #ffe1e6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.tp-hero-feature strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 2px;
}

.tp-hero-feature span {
  font-size: 11.5px;
  color: var(--teks-lemah);
  line-height: 1.4;
}

/* Hero visual (pengganti foto gedung — abstrak, memakai warna brand) */
.tp-hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(228,3,46,.9), rgba(164,0,31,.85) 40%, var(--navy-2) 100%);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, transparent 0 55%, rgba(255,255,255,.06) 55% 58%, transparent 58% 100%),
    linear-gradient(115deg, transparent 0 68%, rgba(255,255,255,.06) 68% 71%, transparent 71% 100%);
}

.tp-hero-visual::after {
  content: "";
  position: absolute;
  left: -20%;
  bottom: -30%;
  width: 140%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.18), transparent 70%);
}

.tp-hero-visual-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.97);
  border-radius: 18px;
  padding: 26px 30px;
  text-align: center;
  box-shadow: 0 20px 40px -14px rgba(13,22,32,.4);
}

.tp-hero-visual-card img {
  height: 100px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  margin-bottom: 10px;
}

.tp-hero-visual-card small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--teks-lemah);
  letter-spacing: .4px;
  text-transform: uppercase;
}

.tp-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: auto;
  line-height: 0;
  z-index: 0;
}

/* ---------------- Menu section ---------------- */
.tp-section {
  max-width: 1180px;
  margin: -46px auto 0;
  padding: 0 32px 70px;
  position: relative;
  z-index: 2;
}

.tp-section-head {
  text-align: center;
  margin-bottom: 34px;
}

.tp-section-head .kicker {
  display: block;
  color: var(--merah);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.tp-section-head h2 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  color: var(--teks);
}

.tp-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.tp-menu-card {
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: 20px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}

.tp-menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tp-menu-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #fff0f2, #ffe1e6);
  color: var(--merah);
}

.tp-menu-card.admin .tp-menu-icon {
  background: linear-gradient(135deg, #eef1f5, #dde3ea);
  color: var(--navy);
}

.tp-menu-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
}

.tp-menu-card > p {
  font-size: 13.5px;
  color: var(--teks-lemah);
  line-height: 1.6;
  margin: 0 0 18px;
}

.tp-menu-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tp-menu-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #384150;
  font-weight: 500;
}

.tp-menu-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fde7ea;
  color: var(--merah-gelap);
  font-size: 10.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-menu-card.admin .tp-menu-list li::before {
  background: #e7ebf0;
  color: var(--navy);
}

.tp-menu-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, var(--merah-terang), var(--merah-gelap));
  color: #fff;
  border-radius: 12px;
  padding: 13px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-merah);
  transition: filter .15s, transform .15s;
}

.tp-menu-card:hover .tp-menu-btn { filter: brightness(1.05); transform: translateY(-1px); }

.tp-menu-btn.admin {
  background: linear-gradient(135deg, var(--navy-terang), var(--navy-2));
  box-shadow: 0 10px 24px -6px rgba(28,43,58,.4);
}

@media (max-width: 860px) {
  .tp-hero-grid { grid-template-columns: 1fr; }
  /* Sebelumnya .tp-hero-visual pakai aspect-ratio:4/3 dari lebar layar --
     di HP sempit itu bikin tingginya jadi lebih pendek dari isi kartu logo
     di dalamnya, jadi bagian bawah kartu (teks "AREA TERRITORY") kepotong
     oleh overflow:hidden. Di mobile, biarkan tingginya menyesuaikan isi
     (bukan lagi dipaksa dari rasio lebar) supaya tidak pernah kepotong. */
  .tp-hero-visual {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: auto;
    padding: 28px 16px;
  }
  .tp-menu-grid { grid-template-columns: 1fr; }
  .tp-hero h1 { font-size: 32px; }
}

@media (max-width: 420px) {
  /* Layar sangat sempit (HP kecil): kartu logo diberi sedikit lagi ruang
     supaya teks "AREA TERRITORY" tidak mepet ke tepi kartu. */
  .tp-hero-visual-card {
    padding: 22px 20px;
  }
}

/* ---------------- Tentang ---------------- */
.tp-about {
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: 20px;
  padding: 22px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow);
}

.tp-about-visual {
  height: 130px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tp-about-visual::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -30%;
  width: 120%;
  height: 60%;
  background: linear-gradient(135deg, var(--merah), var(--merah-gelap));
  transform: skewY(-6deg);
}

.tp-about-visual img {
  position: relative;
  z-index: 1;
  height: 34px;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .92;
}

.tp-about h3 {
  color: var(--merah);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
}

.tp-about p {
  font-size: 13px;
  color: var(--teks-lemah);
  line-height: 1.6;
  margin: 0;
}

.tp-about-logo img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .tp-about { grid-template-columns: 1fr; text-align: center; }
  .tp-about-logo { justify-self: center; }
}

/* ---------------- Panduan ---------------- */
.tp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tp-step {
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
}

.tp-step .num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--merah-terang), var(--merah-gelap));
  color: #fff;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.tp-step h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 6px;
}

.tp-step p {
  font-size: 12.5px;
  color: var(--teks-lemah);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 760px) {
  .tp-steps { grid-template-columns: 1fr; }
}

/* ---------------- Footer ---------------- */
.tp-footer {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #cbd4dd;
  padding: 46px 32px 0;
}

.tp-footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1fr;
  gap: 28px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.tp-footer-brand img {
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 10px;
}

.tp-footer-brand p {
  font-size: 12px;
  color: #9fb0c2;
  line-height: 1.6;
  margin: 2px 0;
}

.tp-footer h5 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 14px;
}

.tp-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tp-footer-links a {
  color: #b9c3cf;
  font-size: 12.5px;
}

.tp-footer-links a:hover { color: #fff; }

.tp-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 12.5px;
  color: #b9c3cf;
}

.tp-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.tp-footer-support p {
  font-size: 12.5px;
  color: #9fb0c2;
  margin: 0 0 14px;
}

.tp-footer-support a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--merah-terang), var(--merah-gelap));
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
}

.tp-footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0;
  font-size: 11.5px;
  color: #8492a3;
}

@media (max-width: 900px) {
  .tp-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* =======================================================================
   LOGIN ADMIN — split layout
   ======================================================================= */
.tp-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.tp-login-shell {
  width: 100%;
  max-width: 1180px;
  min-height: 640px;
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
}

.tp-login-visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #f4f6f9 0%, #e9edf2 100%);
  padding: 46px 44px;
  display: flex;
  flex-direction: column;
}

.tp-login-visual-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(228,3,46,.10), transparent 45%),
    linear-gradient(135deg, rgba(28,43,58,.05), transparent 60%);
}

.tp-login-visual-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  line-height: 0;
}

.tp-login-logo {
  position: relative;
  z-index: 1;
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 30px;
}

.tp-login-visual .eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teks-lemah);
  margin-bottom: 14px;
}

.tp-login-visual .eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--merah);
  display: inline-block;
}

.tp-login-visual h2 {
  position: relative;
  z-index: 1;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--teks);
}

.tp-login-visual h2 span {
  color: var(--merah);
  display: block;
}

.tp-login-visual > p.desc {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--teks-lemah);
  line-height: 1.65;
  max-width: 340px;
  margin: 0 0 30px;
}

.tp-login-feats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: auto;
}

.tp-login-feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tp-login-feat .ic {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.tp-login-feat strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.tp-login-feat span {
  font-size: 11.5px;
  color: var(--teks-lemah);
}

.tp-login-visual-foot {
  position: relative;
  z-index: 1;
  font-size: 11px;
  color: #7c8794;
  padding-top: 90px;
}

.tp-login-panel {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tp-login-panel-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff0f2, #ffe1e6);
  color: var(--merah);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 18px;
}

.tp-login-panel h1 {
  text-align: center;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}

.tp-login-panel > p.sub {
  text-align: center;
  font-size: 12.5px;
  color: var(--teks-lemah);
  margin: 0 0 28px;
}

.tp-login-panel .field {
  margin-bottom: 16px;
}

.tp-login-panel label {
  font-size: 12.5px;
  font-weight: 700;
  color: #384150;
  margin-bottom: 6px;
  display: block;
}

.tp-input-icon {
  position: relative;
}

.tp-input-icon .ic {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa4b1;
  font-size: 14px;
  pointer-events: none;
}

.tp-input-icon input {
  padding-left: 38px !important;
}

.tp-toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9aa4b1;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}

.tp-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 22px;
  font-size: 12.5px;
}

.tp-remember {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #4b5563;
  font-weight: 500;
  cursor: pointer;
}

.tp-remember input {
  width: 15px;
  height: 15px;
  accent-color: var(--merah);
}

.tp-forgot {
  color: var(--merah);
  font-weight: 700;
}

.tp-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #9aa4b1;
  font-size: 11.5px;
}

.tp-divider::before,
.tp-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--garis);
}

.tp-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 1.5px solid var(--garis);
  color: var(--merah-gelap);
  background: #fff;
  border-radius: 12px;
  padding: 13px;
  font-size: 13.5px;
  font-weight: 700;
  transition: all .15s;
}

.tp-btn-outline:hover {
  border-color: var(--merah);
  background: #fff5f6;
}

.tp-login-error {
  background: #fdf2f2;
  border: 1px solid #e4a0a0;
  color: #a4001f;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 13px;
  margin-bottom: 16px;
  text-align: center;
}

@media (max-width: 900px) {
  .tp-login-shell { grid-template-columns: 1fr; }
  .tp-login-visual { display: none; }
  .tp-login-panel { padding: 40px 26px; }
}