/* Login unit (MADIN / SMP / MA / Sekretariat) — selaras dengan login.php */
:root {
  --lp-forest: #102c24;
  --lp-forest-mid: #1b4a3b;
  --lp-leaf: #2f7a5e;
  --lp-gold: #c4a35a;
  --lp-gold-soft: #e8d7a5;
  --lp-muted: #5d6f68;
  --lp-ink: #12241e;
  --lp-surface: rgba(255, 252, 247, 0.94);
  --lp-accent: #1e5c4a;
}

*, *::before, *::after { box-sizing: border-box; }

html, body.page-login-lp {
  height: 100%;
  width: 100%;
}

body.page-login-lp {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--lp-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3.5vw, 2.25rem);
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 12% -10%, rgba(196, 163, 90, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 110%, rgba(47, 122, 94, 0.35), transparent 50%),
    linear-gradient(165deg, #1a4638 0%, #12352b 42%, #0c241e 100%);
}

a { color: inherit; text-decoration: none; }

.lp-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath fill='none' stroke='%23c4a35a' stroke-opacity='0.14' stroke-width='1' d='M36 4 L44 20 L60 20 L48 32 L52 48 L36 40 L20 48 L24 32 L12 20 L28 20 Z'/%3E%3C/svg%3E");
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
  animation: lp-drift 48s linear infinite;
}

.lp-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
  opacity: 0.35;
}
.lp-glow--a {
  top: -8rem;
  left: -6rem;
  background: #c4a35a;
  animation: lp-breathe 8s ease-in-out infinite;
}
.lp-glow--b {
  bottom: -10rem;
  right: -8rem;
  background: #2f7a5e;
  animation: lp-breathe 10s ease-in-out infinite reverse;
}

.lp-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 26.5rem);
  margin: 0 auto;
  flex: 0 0 auto;
}

.lp-dialog {
  width: 100%;
  padding: clamp(1.35rem, 3.2vw, 1.85rem) clamp(1.1rem, 3vw, 1.65rem) 1.25rem;
  background: var(--lp-surface);
  border-radius: 28px;
  border: 1px solid rgba(232, 215, 165, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 60px rgba(6, 22, 18, 0.38),
    0 0 0 1px rgba(16, 44, 36, 0.06);
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: lp-dialog-in 0.4s ease both;
}

.lp-dialog::before {
  content: "";
  display: block;
  height: 3px;
  margin: -clamp(1.35rem, 3.2vw, 1.85rem) -clamp(1.1rem, 3vw, 1.65rem) 1.2rem;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(90deg, transparent, var(--lp-gold), var(--lp-gold-soft), var(--lp-gold), transparent);
}

@keyframes lp-dialog-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lp-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes lp-breathe {
  0%, 100% { opacity: 0.26; transform: scale(1); }
  50% { opacity: 0.46; transform: scale(1.06); }
}

@keyframes lp-drift {
  from { background-position: 0 0; }
  to { background-position: 72px 72px; }
}

@keyframes lp-wa-ring {
  0% { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.14); }
}

.lp-head,
.lp-badge,
.lp-form > *,
.lp-demo,
.lp-order,
.lp-back {
  animation: lp-rise 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lp-head { animation-delay: 0.05s; }
.lp-badge { animation-delay: 0.14s; }
.lp-form > *:nth-child(1) { animation-delay: 0.22s; }
.lp-form > *:nth-child(2) { animation-delay: 0.3s; }
.lp-form > *:nth-child(3) { animation-delay: 0.38s; }
.lp-form > *:nth-child(4) { animation-delay: 0.46s; }
.lp-demo { animation-delay: 0.52s; }
.lp-order { animation-delay: 0.6s; }
.lp-back { animation-delay: 0.68s; }

.lp-head { margin-bottom: 1.1rem; }

.lp-logo-wrap {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff 0%, #f7f1e3 70%), #fff;
  border: 3px solid var(--lp-gold);
  box-shadow:
    0 0 0 6px rgba(196, 163, 90, 0.16),
    0 12px 28px rgba(16, 44, 36, 0.18);
}

.lp-head-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
}

.lp-eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lp-leaf);
}

.lp-title {
  margin: 0 0 0.15rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 4.5vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--lp-forest);
}

.lp-lead {
  margin: 0 auto;
  font-size: 0.84rem;
  color: var(--lp-muted);
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.7rem;
  padding: 0.28rem 0.78rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-accent);
  background: #eef6f2;
  border: 1px solid rgba(30, 92, 74, 0.16);
}

body.lp-accent-smp { --lp-accent: #9a7420; }
body.lp-accent-sma { --lp-accent: #3d6b8c; }
body.lp-accent-smp .lp-badge { background: #f8efd2; border-color: rgba(184, 148, 46, 0.35); }
body.lp-accent-sma .lp-badge { background: #e7eef4; border-color: rgba(61, 107, 140, 0.28); }

.lp-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
}

.lp-alert {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: #fdecec;
  border: 1px solid #f5c2c2;
  color: #8a1f1f;
  font-size: 0.82rem;
  font-weight: 600;
}

.lp-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
}

.lp-label {
  display: block;
  margin: 0 0 0.38rem 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-forest-mid);
}

.lp-input {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  height: 3rem;
  padding: 0 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(27, 74, 59, 0.18);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.lp-input svg {
  flex: 0 0 1.1rem;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0 0.65rem 0 0;
  color: var(--lp-muted);
  display: block;
}

.lp-input input {
  flex: 1 1 0%;
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--lp-ink);
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.lp-input:focus-within {
  border-color: var(--lp-accent);
  box-shadow: 0 0 0 4px rgba(30, 92, 74, 0.12);
}

body.lp-accent-smp .lp-input:focus-within { box-shadow: 0 0 0 4px rgba(184, 148, 46, 0.18); }
body.lp-accent-sma .lp-input:focus-within { box-shadow: 0 0 0 4px rgba(61, 107, 140, 0.16); }

.lp-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3rem;
  margin-top: 0.15rem;
  padding: 0 1.1rem;
  border: 1px solid rgba(16, 44, 36, 0.25);
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(180deg, #2a6b55 0%, #174536 100%);
  box-shadow: 0 10px 22px rgba(16, 44, 36, 0.22);
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

body.lp-accent-smp .lp-submit {
  background: linear-gradient(180deg, #c4a35a 0%, #8d6b24 100%);
  border-color: rgba(125, 92, 20, 0.35);
}
body.lp-accent-sma .lp-submit {
  background: linear-gradient(180deg, #4a7fa3 0%, #2d5470 100%);
  border-color: rgba(45, 84, 112, 0.35);
}

.lp-submit:hover,
.lp-submit:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 14px 28px rgba(16, 44, 36, 0.28);
}

.lp-submit:focus-visible {
  outline: 3px solid var(--lp-gold);
  outline-offset: 3px;
}

.lp-demo {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f6f1e4, #efe4c8);
  border: 1px solid rgba(196, 163, 90, 0.38);
  color: var(--lp-forest);
  text-align: center;
}

.lp-demo strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a5b12;
}

.lp-creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  width: 100%;
}

.lp-cred {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.15rem;
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(196, 163, 90, 0.4);
  font-size: 0.78rem;
}

.lp-cred span { font-weight: 600; color: var(--lp-muted); font-size: 0.68rem; }
.lp-cred code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}

.lp-order {
  margin: 0.85rem 0 0;
  padding: 0.85rem 0.85rem 0.9rem;
  border-radius: 14px;
  background: #f4fbf6;
  border: 1px solid rgba(18, 140, 126, 0.22);
  text-align: center;
  overflow: visible;
}

.lp-order-copy {
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--lp-forest);
}

.lp-order-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 2.6rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #25d366, #128c7e);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(18, 140, 126, 0.28);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.lp-order-btn::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, 0.5);
  pointer-events: none;
  opacity: 0;
  animation: lp-wa-ring 1.35s ease-out 4s 2;
}

.lp-order-btn:hover,
.lp-order-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.lp-order-btn svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }

.lp-order-tel {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0f6b52;
}

.lp-back {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.85rem;
  padding: 0.55rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--lp-forest-mid);
  border: 1px solid rgba(27, 74, 59, 0.12);
  background: rgba(255,255,255,0.55);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.lp-back:hover,
.lp-back:focus-visible {
  background: #fff;
  border-color: rgba(27, 74, 59, 0.28);
}

.lp-credit {
  margin: 1rem 0 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .lp-bg, .lp-glow, .lp-dialog, .lp-head, .lp-badge, .lp-form > *,
  .lp-demo, .lp-order, .lp-back, .lp-order-btn::after, .lp-submit { animation: none; }
  .lp-submit, .lp-order-btn, .lp-input { transition: none; }
  .lp-submit:hover, .lp-order-btn:hover { transform: none; }
}
