/* ==========================================================
   AUTH PAGES — login, registrasi, admin-login
   Split-screen, satu identitas visual dengan beranda
   (hijau-emas-krem, Fraunces untuk judul)
   ========================================================== */

:root {
  --pp-green: #0e6b3a;
  --pp-green-ink: #0a3d22;
  --pp-green-soft: #12804a;
  --pp-gold: #e8b923;
  --pp-gold-light: #f5d65c;
  --pp-cream: #fbf7ee;
  --pp-cream-deep: #f2ead6;
  --pp-ink: #1b2a22;
  --pp-ink-soft: #52655b;
  --pp-danger: #c0392b;
  --pp-danger-bg: #fdecea;
  --font-display: "Fraunces", "Plus Jakarta Sans", serif;
}

body.auth-body {
  margin: 0;
  background: var(--pp-cream);
  color: var(--pp-ink);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

/* ---------------- LEFT: brand panel ---------------- */
.auth-aside {
  position: relative;
  overflow: hidden;
  background: var(--pp-green);
  color: var(--pp-cream);
  padding: 44px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-aside::before,
.auth-aside::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 214, 92, 0.35);
}

.auth-aside::before {
  width: 420px;
  height: 420px;
  right: -160px;
  top: -140px;
}

.auth-aside::after {
  width: 260px;
  height: 260px;
  left: -110px;
  bottom: -100px;
  border-color: rgba(245, 214, 92, 0.22);
}

.auth-aside-deco {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 280px;
  height: 280px;
  opacity: 0.9;
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pp-cream);
}

.auth-brand span {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.auth-aside-body {
  position: relative;
  z-index: 1;
  max-width: 380px;
}

.auth-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--pp-gold-light);
  background: rgba(245, 214, 92, 0.14);
  padding: 6px 14px;
  border-radius: 20px;
  margin: 0 0 18px;
}

.auth-aside-body h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.28;
  margin: 0 0 14px;
  color: #ffffff;
}

.auth-aside-lead {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(251, 247, 238, 0.82);
  margin: 0;
}

.auth-aside-facts {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-fact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(251, 247, 238, 0.92);
}

.auth-fact .auth-fact-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(245, 214, 92, 0.16);
  color: var(--pp-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------- RIGHT: form panel ---------------- */
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: var(--pp-cream);
}

.auth-form-wrap {
  width: 100%;
  max-width: 400px;
}

.auth-main-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-main-brand strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--pp-green-ink);
}

.auth-form-wrap h2 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  color: var(--pp-green-ink);
  margin: 0 0 6px;
}

.auth-form-wrap .subtitle {
  font-size: 13.5px;
  color: var(--pp-ink-soft);
  margin: 0 0 26px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-field {
  position: relative;
}

.input-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pp-green-ink);
  margin: 0 0 6px;
}

.input-field .icon {
  position: absolute;
  left: 14px;
  top: 40px;
  color: var(--pp-ink-soft);
  display: flex;
  pointer-events: none;
}

.input-field input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--pp-cream-deep);
  background: #ffffff;
  padding: 0 14px 0 42px;
  font-size: 14px;
  font-family: inherit;
  color: var(--pp-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-field input::placeholder {
  color: #a9b3ab;
}

.input-field input:focus {
  outline: none;
  border-color: var(--pp-green);
  box-shadow: 0 0 0 3px rgba(14, 107, 58, 0.12);
}

.toggle-eye {
  position: absolute;
  right: 14px;
  top: 40px;
  height: 22px;
  cursor: pointer;
  color: var(--pp-ink-soft);
  display: flex;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin: -2px 0 2px;
}

.auth-row label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--pp-ink-soft);
  font-weight: 500;
}

.auth-row a,
.auth-terms a {
  color: var(--pp-green);
  font-weight: 700;
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--pp-ink-soft);
  margin: -2px 0 2px;
  line-height: 1.5;
}

.auth-terms input {
  margin-top: 3px;
}

.btn-auth-primary {
  height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--pp-green);
  color: var(--pp-cream);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-auth-primary:hover {
  background: var(--pp-green-ink);
}

.btn-auth-primary:active {
  transform: scale(0.99);
}

.btn-auth-gold {
  background: var(--pp-gold);
  color: var(--pp-green-ink);
}

.btn-auth-gold:hover {
  background: var(--pp-gold-light);
}

.auth-footer {
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--pp-ink-soft);
  text-align: center;
}

.auth-footer+.auth-footer {
  margin-top: 8px;
}

.auth-footer a {
  color: var(--pp-green);
  font-weight: 700;
}

.alert {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.alert-error {
  background: var(--pp-danger-bg);
  color: var(--pp-danger);
}

.alert-success {
  background: #e6f4ea;
  color: var(--pp-green-ink);
}

.auth-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    display: none;
  }

  .auth-main-brand {
    display: flex;
  }

  .auth-main {
    padding: 32px 22px;
  }

  .auth-2col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}