/* ==========================================================
   auth.css
   Styling bersama untuk halaman login.php & register.php:
   panel visual biru di kiri, dan kartu form di kanan.
   Membutuhkan base.css untuk variabel warna & reset.
   ========================================================== */

body{
  display: flex;
  min-height: 100vh;
}

/* ===== Panel visual (kiri) ===== */
.visual{
  flex: 1.05;
  background: linear-gradient(160deg, var(--sidebar-start) 0%, var(--sidebar-mid) 48%, var(--sidebar-end) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.visual::before, .visual::after{
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.visual::before{ width: 340px; height: 340px; top: -120px; right: -100px; }
.visual::after{ width: 220px; height: 220px; bottom: -80px; left: -60px; background: rgba(255,255,255,.06); }

.brand{ display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.brand-mark svg{ width: 34px; height: 34px; }
.brand-name{ font-size: 18px; font-weight: 700; }

.visual-copy{ position: relative; z-index: 1; max-width: 380px; }
.visual-copy h1{ font-size: 30px; line-height: 1.25; font-weight: 700; margin: 0 0 12px; }
.visual-copy p{ font-size: 14.5px; color: rgba(255,255,255,.85); line-height: 1.6; margin: 0; }

.trust-row{ display: flex; gap: 22px; position: relative; z-index: 1; flex-wrap: wrap; }
.trust-item{ display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.85); }
.trust-item svg{ width: 16px; height: 16px; flex-shrink: 0; }

/* ===== Panel form (kanan) ===== */
.form-panel{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.form-card{ width: 100%; max-width: 400px; }
.form-card h2{ font-size: 24px; font-weight: 700; margin: 0 0 6px; font-family: 'Plus Jakarta Sans', sans-serif; }
.form-card .subtitle{ font-size: 14px; color: var(--text-muted); margin: 0 0 24px; }

.field{ margin-bottom: 17px; }
.field label{ display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }

.input-wrap{ position: relative; }
.input-wrap input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  outline: none;
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input-wrap input:focus{ border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-wrap.with-icon input{ padding-right: 42px; }

.toggle-visibility{
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  border: none; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border-radius: 8px;
}
.toggle-visibility:hover{ background: var(--bg); }
.toggle-visibility svg{ width: 18px; height: 18px; }

/* Indikator kekuatan password (dipakai di register.php) */
.strength-wrap{ margin-top: 9px; }
.strength-bars{ display: flex; gap: 5px; margin-bottom: 6px; }
.strength-bars span{ height: 4px; flex: 1; border-radius: 3px; background: var(--border); transition: background .18s ease; }
.strength-label{ font-size: 11.5px; color: var(--text-muted); }

.row-between{ display: flex; align-items: center; justify-content: space-between; margin: 4px 0 22px; }

.checkbox-line{ display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.checkbox-line input{ width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }

.link{ font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 600; }
.link:hover{ text-decoration: underline; }

.btn-primary{
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--accent) 0%, var(--sidebar-end) 100%);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(76, 98, 175, .28);
}

.security-note{
  display: flex; gap: 10px;
  background: var(--accent-soft);
  border: 1px solid #DDE6FB;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: #4E5C87;
  margin-top: 20px;
  line-height: 1.5;
}
.security-note svg{ width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); margin-top: 1px; }

/* Honeypot: field jebakan anti-bot, disembunyikan dari pengguna asli */
.hp-field{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert-box{
  background: #FDECEA;
  color: #B5362A;
  border: 1px solid #F6C9C2;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.6;
}
.alert-box ul{ margin: 0; padding-left: 18px; }

@media (max-width: 900px){
  .visual{ display: none; }
}
