/*
 * Paperless Office — Halaman otentikasi (login, lupa & reset kata sandi).
 *
 * Tata letak dua panel: panel kiri berisi formulir, panel kanan berisi
 * showcase bergradien dengan carousel tiga slide. Semua warna dipusatkan di
 * :root agar mudah diselaraskan dengan skin backoffice (plo-skin.css).
 */

:root {
  --plo-bg: #F8FAFC;
  --plo-surface: #FFFFFF;
  --plo-border: #E2E8F0;
  --plo-border-hover: #CBD5E1;
  --plo-text: #0F172A;
  --plo-text-2: #475569;
  --plo-muted: #94A3B8;
  --plo-primary: #2563EB;
  --plo-accent: #1D4ED8;
  --plo-sky: #38BDF8;
  --plo-tint: #EFF6FF;
  --plo-tint-border: #DBEAFE;
}

html, body { margin: 0; padding: 0; }

body.plo-auth {
  background: var(--plo-bg);
  font-family: Inter, Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--plo-text-2);
  -webkit-font-smoothing: antialiased;
}

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

.plo-auth a { color: var(--plo-primary); text-decoration: none; }
.plo-auth a:hover { color: var(--plo-accent); }

.plo-auth input:focus-visible,
.plo-auth button:focus-visible,
.plo-auth a:focus-visible {
  outline: 3px solid rgba(56, 189, 248, .55);
  outline-offset: 2px;
}

.plo-auth input::placeholder { color: var(--plo-muted); }

/* ── Kerangka ───────────────────────────────────────────────────────────── */

.plo-split {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: var(--plo-bg);
}

.plo-pane {
  flex: 1 1 44%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 56px 40px 36px;
  background: var(--plo-surface);
}

.plo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 404px;
  animation: ploFadeIn .6s ease both;
}

.plo-brand img {
  display: block;
  width: auto;
  max-width: 132px;
  max-height: 44px;
  object-fit: contain;
}

.plo-brand__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.plo-brand__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--plo-text);
}

.plo-brand__sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--plo-muted);
}

.plo-formwrap {
  width: 100%;
  max-width: 404px;
  display: flex;
  flex-direction: column;
  padding: 40px 0;
}

.plo-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: ploFadeUp .45s cubic-bezier(.22, 1, .36, 1) both;
}

.plo-form__head { display: flex; flex-direction: column; gap: 10px; }

.plo-form__head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--plo-text);
  text-wrap: pretty;
}

.plo-form__head p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--plo-text-2);
  text-wrap: pretty;
}

.plo-fields { display: flex; flex-direction: column; gap: 16px; }

.plo-field { display: flex; flex-direction: column; gap: 7px; }

.plo-field > span,
.plo-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--plo-text);
}

.plo-input {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--plo-border);
  border-radius: 14px;
  background: var(--plo-bg);
  padding: 0 15px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--plo-text);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.plo-input:hover { border-color: var(--plo-border-hover); }

.plo-input:focus {
  border-color: var(--plo-primary);
  background: var(--plo-surface);
  box-shadow: 0 0 0 4px var(--plo-tint);
  outline: none;
}

.plo-input.is-invalid { border-color: #EF4444; }
.plo-input.is-invalid:focus { box-shadow: 0 0 0 4px #FEF2F2; }

/* Bidang kata sandi dengan tombol lihat/sembunyikan. */
.plo-input-group { position: relative; display: flex; }
.plo-input-group .plo-input { flex: 1; padding-right: 50px; }

.plo-eye {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--plo-muted);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.plo-eye:hover { background: var(--plo-tint); color: var(--plo-primary); }
.plo-eye svg { display: block; }
.plo-eye [data-eye-off] { display: none; }
.plo-eye.is-on [data-eye-on] { display: none; }
.plo-eye.is-on [data-eye-off] { display: block; }

.plo-forgot { display: flex; justify-content: flex-end; margin-top: -4px; }

.plo-forgot a {
  padding: 4px 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--plo-primary);
  border-radius: 6px;
}

.plo-actions { display: flex; flex-direction: column; gap: 12px; }

.plo-btn {
  position: relative;
  overflow: hidden;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 15px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease;
}

.plo-btn--primary {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .65);
}

.plo-btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -12px rgba(37, 99, 235, .7);
}

.plo-btn--primary:active { transform: translateY(0); }

.plo-btn--ghost {
  background: var(--plo-bg);
  border: 1.5px solid var(--plo-border);
  color: var(--plo-text-2);
}

.plo-btn--ghost:hover {
  color: var(--plo-primary);
  border-color: var(--plo-tint-border);
  background: var(--plo-tint);
}

.plo-btn[disabled], .plo-btn.is-loading { cursor: progress; opacity: .85; }

.plo-spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: ploSpin .7s linear infinite;
}

.plo-back {
  align-self: center;
  border: 0;
  background: transparent;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--plo-text-2);
  border-radius: 8px;
}

.plo-back:hover { color: var(--plo-primary); }

/* Pesan galat & status. */
.plo-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: 14px;
  animation: ploPop .4s cubic-bezier(.22, 1, .36, 1) both;
}

.plo-alert__icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.plo-alert__body { font-size: 13px; line-height: 1.55; font-weight: 500; }
.plo-alert__body ul { margin: 0; padding-left: 16px; }

.plo-alert--info { background: var(--plo-tint); border: 1px solid var(--plo-tint-border); }
.plo-alert--info .plo-alert__icon { background: var(--plo-primary); }
.plo-alert--info .plo-alert__body { color: var(--plo-accent); }

.plo-alert--error { background: #FEF2F2; border: 1px solid #FECACA; }
.plo-alert--error .plo-alert__icon { background: #DC2626; }
.plo-alert--error .plo-alert__body { color: #B91C1C; }

.plo-field-error { font-size: 12px; font-weight: 500; color: #DC2626; }

.plo-copyright {
  margin: 0;
  width: 100%;
  max-width: 404px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--plo-muted);
}

/* ── Panel showcase ─────────────────────────────────────────────────────── */

.plo-showcase {
  flex: 1 1 56%;
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px 56px 44px;
  background: linear-gradient(135deg, #0F172A, #1D4ED8, #2563EB);
}

.plo-orb { position: absolute; pointer-events: none; border-radius: 50%; }

.plo-orb--a {
  top: -140px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 40% 40%, rgba(56, 189, 248, .45), rgba(56, 189, 248, 0) 68%);
  filter: blur(10px);
  animation: ploFloat 13s ease-in-out infinite;
}

.plo-orb--b {
  bottom: -180px;
  left: -100px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle at 60% 40%, rgba(37, 99, 235, .55), rgba(15, 23, 42, 0) 70%);
  filter: blur(6px);
  animation: ploFloatAlt 17s ease-in-out infinite;
}

.plo-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 35%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse at 60% 35%, #000, transparent 72%);
}

.plo-square {
  position: absolute;
  top: 14%;
  left: 8%;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 28px;
  transform: rotate(18deg);
  pointer-events: none;
}

.plo-stage { position: relative; height: 376px; margin-bottom: 34px; }

.plo-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.plo-slide.is-active { display: flex; animation: ploFadeIn .7s ease both; }

.plo-comp {
  position: relative;
  flex: none;
  width: 520px;
  height: 376px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Jendela gelap bergaya aplikasi. */
.plo-window {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(160deg, #0B1220, #14213D);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 80px -30px rgba(2, 6, 23, .9);
  overflow: hidden;
  animation: ploRise .8s cubic-bezier(.22, 1, .36, 1) .05s both;
}

.plo-window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.plo-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.plo-dot:first-child { background: rgba(255, 255, 255, .22); }

.plo-window__title {
  margin-left: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(239, 246, 255, .5);
}

.plo-hero {
  position: absolute;
  inset: 34px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px 8px;
}

.plo-hero__text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.25;
  text-align: center;
  color: #fff;
  text-shadow: 0 0 28px rgba(56, 189, 248, .55);
}

.plo-hero__rule {
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #38BDF8, rgba(56, 189, 248, 0));
}

.plo-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 40%, rgba(56, 189, 248, .16), transparent 62%);
}

/* Kartu putih mengambang. */
.plo-card {
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 34px 70px -24px rgba(2, 6, 23, .75);
  overflow: hidden;
  animation: ploPop .8s cubic-bezier(.22, 1, .36, 1) .22s both;
}

.plo-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--plo-border);
}

.plo-card__name {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--plo-text-2);
}

.plo-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--plo-tint);
  color: var(--plo-accent);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .05em;
}

.plo-chip__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--plo-primary); }

.plo-card__body { position: relative; padding: 14px; display: flex; flex-direction: column; gap: 7px; }

.plo-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }

.plo-step {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--plo-tint);
  color: var(--plo-accent);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
}

.plo-step--done { background: var(--plo-primary); color: #fff; }
.plo-steps__line { flex: 1; height: 1.5px; background: var(--plo-tint-border); }

.plo-bar { height: 7px; border-radius: 4px; background: var(--plo-border); }
.plo-bar--tint { background: var(--plo-tint); }

.plo-sign {
  margin-top: 9px;
  padding: 11px 12px;
  border: 1.5px dashed var(--plo-tint-border);
  border-radius: 13px;
  background: var(--plo-bg);
  display: flex;
  align-items: center;
  gap: 11px;
}

.plo-sign__meta { display: flex; flex-direction: column; gap: 2px; }
.plo-sign__title { font-size: 9.5px; font-weight: 700; color: var(--plo-text); }
.plo-sign__sub { font-size: 8.5px; font-weight: 500; color: var(--plo-muted); }

.plo-scan { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.plo-scan span {
  position: absolute;
  left: 0;
  right: 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, .16), transparent);
  animation: ploSweep 4.6s cubic-bezier(.65, 0, .35, 1) 1s infinite;
}

/* Slide 3 — lingkaran logo. */
.plo-logoring {
  position: relative;
  display: grid;
  place-items: center;
  width: 300px;
  height: 300px;
  max-width: 100%;
  animation: ploPop .85s cubic-bezier(.22, 1, .36, 1) .05s both;
}

.plo-logoring__outer { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); }

.plo-logoring__inner {
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
  background: radial-gradient(circle, rgba(56, 189, 248, .22), transparent 70%);
}

.plo-logoring__plate {
  position: relative;
  display: grid;
  place-items: center;
  width: 200px;
  height: 200px;
  border-radius: 36px;
  background: #FFFFFF;
  box-shadow: 0 34px 70px -24px rgba(2, 6, 23, .8);
  padding: 30px;
}

.plo-logoring__plate img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Teks & navigasi carousel. */
.plo-caption { position: relative; display: flex; flex-direction: column; gap: 14px; max-width: 520px; }

.plo-caption__slide { display: none; flex-direction: column; gap: 11px; }
.plo-caption__slide.is-active { display: flex; }

.plo-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--plo-sky);
  animation: ploRise .6s cubic-bezier(.22, 1, .36, 1) .3s both;
}

.plo-caption h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  text-wrap: pretty;
  animation: ploRise .65s cubic-bezier(.22, 1, .36, 1) .4s both;
}

.plo-caption p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(239, 246, 255, .82);
  text-wrap: pretty;
  animation: ploRise .7s cubic-bezier(.22, 1, .36, 1) .5s both;
}

.plo-dots { display: flex; align-items: center; gap: 10px; margin-top: 6px; }

.plo-dots button {
  height: 6px;
  width: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(239, 246, 255, .28);
  cursor: pointer;
  transition: width .45s cubic-bezier(.22, 1, .36, 1), background .35s ease;
}

.plo-dots button[aria-selected="true"] {
  width: 44px;
  background: linear-gradient(90deg, #38BDF8, #EFF6FF);
}

.plo-counter {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(239, 246, 255, .5);
}

/* ── Animasi ────────────────────────────────────────────────────────────── */

@keyframes ploFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ploFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ploSlideIn { from { opacity: 0; transform: translateX(26px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes ploRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes ploPop { from { opacity: 0; transform: scale(.93) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ploFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -18px, 0); } }
@keyframes ploFloatAlt { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(14px, 12px, 0); } }
@keyframes ploSpin { to { transform: rotate(360deg); } }
@keyframes ploSweep { 0% { transform: translateY(-120%); } 55%, 100% { transform: translateY(320%); } }

/* ── Responsif ──────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .plo-split { flex-direction: column; }
  .plo-showcase { order: -1; min-height: 460px; flex: none; padding: 44px 28px; }
  .plo-pane { flex: none; min-height: auto; padding: 44px 24px 32px; }
  .plo-stage { height: 320px; }
  .plo-comp { transform: scale(.8); }
}

@media (max-width: 760px) {
  .plo-comp { transform: scale(.68); }
}

@media (max-width: 560px) {
  .plo-showcase { min-height: 380px; padding: 36px 20px; }
  .plo-stage { height: 300px; }
  .plo-comp { transform: scale(.56); }
  .plo-form__head h1 { font-size: 25px; }
  .plo-caption h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .plo-auth * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
