/* =========================================================
   LOGIN v2 - Redesign (single-image hero)
   Fokus: UI saja. Tidak menyentuh alur autentikasi.
========================================================= */

:root{
  --bg: #eef2f7;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(17, 24, 39, .10);

  --primary: #0b5ed7;
  --primary-hover: #0a58ca;

  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;

  --shadow-soft: 0 18px 40px rgba(16, 24, 40, .10);
}

.login-page{
  background: var(--bg) !important;
  color: var(--text);
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================================================
   SHELL LAYOUT
========================================================= */
.login-shell{
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 22px;
  padding: 18px;
  box-sizing: border-box;
}

/* =========================================================
   LEFT HERO - SINGLE IMAGE
========================================================= */
.login-hero{
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: calc(100vh - 36px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-soft);
}


/* overlay utama */
.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10,12,18,.62), rgba(10,12,18,.38));
  z-index: 1;
}

/* efek lembut biar tidak flat: vignette + highlight */
.login-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(820px 520px at 20% 82%, rgba(0,0,0,.42), transparent 62%),
    radial-gradient(720px 460px at 85% 10%, rgba(255,255,255,.08), transparent 62%);
  pointer-events: none;
}

/* Banner Instansi */
.gov-banner{
  position: relative;
  z-index: 3;
  margin: 18px;
  padding: 10px 12px;
  border-radius: 14px;
  max-width: 560px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
}
.gov-banner-title{ font-size: 12px; }
.gov-banner-subtitle{ font-size: 11px; }

.gov-emblem{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.10);
  display: grid;
  place-items: center;
}

.gov-emblem img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gov-banner-text{
  line-height: 1.2;
}

.gov-banner-title{
  margin: 0;
  font-weight: 700;
  font-size: 12.5px;
  color: rgba(255,255,255,.92);
}

.gov-banner-subtitle{
  margin: 2px 0 0;
  font-size: 11.5px;
  color: rgba(255,255,255,.70);
}

/* Hero content bottom-left */
.hero-content{
  position: absolute;
  z-index: 3;
  left: 22px;
  bottom: 22px;
  max-width: 520px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(4px);
  
}

.hero-badge{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  margin-bottom: 12px;
}

.badge-icon{
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.14);
  color: #fff;
}

.badge-label{
  color: rgba(255,255,255,.88);
  font-size: 12px;
  font-weight: 600;
}

.hero-content h1{
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #fff;
}

.hero-subtitle{
  margin: 6px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 13px;
}

.hero-meta{
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.meta-item{
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,.86);
  font-size: 12.5px;
}

.meta-item i{
  width: 18px;
  text-align: center;
  opacity: .95;
}

/* =========================================================
   RIGHT PANEL
========================================================= */
.login-panel{
  position: relative;
  min-height: calc(100vh - 36px);
  background: var(--panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.panel-topbar{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  padding: 8px 6px 12px;
}

.topbar-text{
  color: var(--muted);
  font-size: 12.5px;
}

.topbar-pill{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, .02);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

/* Card content center */
.login-card{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
  padding: 10px 10px 6px;
  box-sizing: border-box;
}

.logo-wrap{
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.logo-circle{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(16,24,40,.08);
  background: #fff;
  display: grid;
  place-items: center;
}

.logo-circle img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title{
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text);
}

.brand-accent{
  color: var(--primary);
}

.brand-subtitle{
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

/* Error text */
.text-error{
  margin: 0 0 12px;
  color: #b42318;
  font-size: 12.5px;
  min-height: 18px;
}

/* Form elements */
.form-signin .form-group{
  margin-bottom: 14px;
}

.form-signin label{
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(17,24,39,.85);
  margin-bottom: 6px;
}

.input-icon{
  position: relative;
}

.input-icon > i{
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(17,24,39,.45);
  font-size: 14px;
  pointer-events: none;
}

.input-icon .form-control{
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding-left: 38px;
  padding-right: 14px;
  box-shadow: 0 0 0 3px rgba(11,94,215,.10);
  font-size: 13.5px;
}

.input-icon .form-control:focus{
  border-color: rgba(11,94,215,.45);
  box-shadow: 0 0 0 4px rgba(11,94,215,.12);
}

/* Password toggle button */
.input-with-action .form-control{
  padding-right: 44px;
}

.btn-icon{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: rgba(17,24,39,.02);
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: rgba(17,24,39,.55);
  outline: none;
}

.btn-icon:hover{
  background: rgba(17,24,39,.04);
}

.caps-warning{
  margin-top: 8px;
  font-size: 12px;
  color: #b42318;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

/* Inline row */
.form-row-inline{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.form-row-right{
  justify-content: flex-end;
  margin-top: 8px;
}

.forgot-link{
  font-size: 12.5px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.forgot-link:hover{
  text-decoration: underline;
}

/* Button */
.btn-signin{
  height: 48px;
  border-radius: 14px !important;
  background: var(--primary) !important;
  border: 1px solid rgba(11,94,215,.25) !important;
  font-weight: 800;
  letter-spacing: .2px;
  margin-top: 14px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-signin:hover{
  background: var(--primary-hover) !important;
}

.btn-spinner{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  display: none;
}

.btn-signin.is-loading .btn-spinner{
  display: inline-block;
  animation: spin .8s linear infinite;
}

.btn-signin.is-loading{
  opacity: .92;
}

@keyframes spin{
  to{ transform: rotate(360deg); }
}

/* Helper & Footer */
.helper-text{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(17, 24, 39, .03);
  border: 1px solid var(--border);
  color: rgba(17,24,39,.72);
  font-size: 12px;
  line-height: 1.4;
}

.helper-text i{
  margin-right: 8px;
  color: rgba(17,24,39,.55);
}

.footer{
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(17,24,39,.12);
  text-align: center;
  color: rgba(17,24,39,.60);
  font-size: 12px;
}

.footer .text-brand{
  color: var(--primary);
  font-weight: 800;
}
/* =========================================================
   FIX: Banner atas & Hero content bawah harus selebar background
   Tempel BLOK INI PALING BAWAH login_v2.css
========================================================= */

/* Banner atas: full width mengikuti hero (kiri-kanan) */
.login-hero .gov-banner{
  position: absolute;          /* wajib: biar left+right bekerja */
  top: 22px;
  left: 22px;
  right: 22px;

  width: auto !important;
  max-width: none !important;  /* matikan batas 560px */
  margin: 0 !important;        /* matikan margin 18px bawaan */
  box-sizing: border-box;

  display: flex !important;    /* jangan inline-flex, biar melebar */
  align-items: center;
  gap: 12px;
}

/* Isi teks banner biar mengisi sisa lebar */
.login-hero .gov-banner-text{
  flex: 1 1 auto;
  min-width: 0;
}

/* Blok judul bawah: full width mengikuti hero */
.login-hero .hero-content{
  left: 22px !important;
  right: 22px !important;
  bottom: 22px;               /* sudah ada, tapi dipastikan */

  width: auto !important;
  max-width: none !important; /* matikan batas 520px */
  margin: 0;
  box-sizing: border-box;
}

/* <h1> ikut parent (full width) */
.login-hero .hero-content h1{
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: normal;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 992px){
  .login-shell{
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .login-hero{
    min-height: 360px;
  }

  .hero-content{
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
  }

  .login-panel{
    min-height: auto;
  }

  .login-card{
    padding: 6px 6px 0;
  }
}

@media (max-width: 420px){
  .brand-title{ font-size: 22px; }
  .logo-circle{ width: 48px; height: 48px; border-radius: 16px; }
}
