/* =========================================================
  PANDU - PASSWORD CSS
  Lokasi file: ./css/password.css

  Catatan:
  - File ini berisi seluruh style halaman password.html.
  - Sebelumnya style masih berada di dalam tag <style>.
  - Sekarang dipisah agar struktur proyek lebih profesional.

  UPDATE STYLE WARNA:
  - Warna utama diselaraskan dengan dashboard.css.
  - Menggunakan biru neumorphism:
    #0B63FF, #1D7BFF, #3C9CFF.
  - Fokus perubahan hanya warna, gradient, shadow, background,
    dan aksen visual.
  - Layout, posisi, ukuran, responsive, dan struktur class tetap dipertahankan.
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* =========================================================
  ROOT VARIABLES
========================================================= */
:root {
  /* Brand & teks selaras dashboard.css */
  --primary: #0B63FF;
  --primary-2: #1D7BFF;
  --primary-3: #3C9CFF;

  --text: #0b1220;
  --muted: #5b6b84;

  /* Background */
  --ice-1: #FFFFFF;
  --ice-2: #F4F7FB;
  --ice-3: #EEF2F7;

  /* Neumorphism */
  --neu-dark: rgba(163, 177, 198, .55);
  --neu-dark-sm: rgba(163, 177, 198, .45);
  --neu-light: rgba(255, 255, 255, .92);

  /* Gradient brand selaras dashboard.css */
  --g1: #3C9CFF;
  --g2: #0B63FF;
  --g3: #1D7BFF;
  --g4: #3C9CFF;

  --primaryGrad:
    linear-gradient(
      145deg,
      rgba(60, 156, 255, 1) 0%,
      rgba(11, 99, 255, 1) 55%,
      rgba(29, 123, 255, 1) 100%
    );

  --primaryGradSoft:
    linear-gradient(
      145deg,
      rgba(60, 156, 255, .95) 0%,
      rgba(11, 99, 255, .95) 55%,
      rgba(29, 123, 255, .95) 100%
    );

  /* Ukuran */
  --card-bg: rgba(244, 247, 251, .94);
  --fs-brand: clamp(18px, 4.6vw, 20px);
  --fs-h2: clamp(20px, 5vw, 24px);
  --fs-label: clamp(14px, 3.6vw, 16px);
  --fs-input: clamp(14px, 3.6vw, 16px);
  --fs-note: clamp(12px, 3.2vw, 13px);
  --fs-btn: clamp(14px, 3.6vw, 16px);

  --space-card: clamp(16px, 4.6vw, 28px);
  --radius: clamp(12px, 3.6vw, 14px);
  --pad-y: clamp(10px, 3.4vw, 12px);
  --pad-x: clamp(12px, 3.6vw, 14px);
}

/* =========================================================
  RESET
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html,
body {
  height: 100%;
}

/* =========================================================
  BODY
========================================================= */
body {
  color: var(--text);
  background:
    radial-gradient(900px 700px at 10% -10%, rgba(255, 255, 255, .95) 0%, rgba(244, 247, 251, .86) 52%, transparent 68%),
    radial-gradient(900px 700px at 110% 105%, rgba(60, 156, 255, .10) 0%, rgba(238, 242, 247, .65) 54%, transparent 70%),
    linear-gradient(180deg, #F4F7FB 0%, #EEF2F7 100%);
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(12px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

/* =========================================================
  LAYOUT
========================================================= */
.layout {
  width: min(1100px, 100%);
  display: grid;
  gap: 22px;
  grid-template-areas: "card";
}

/* =========================================================
  SIDE VISUAL
  Default hidden di mobile, tampil di desktop.
========================================================= */
.side-visual {
  grid-area: visual;
  display: none;
  align-self: stretch;
  border-radius: 20px;
}

.visual-card {
  height: 100%;
  min-height: 420px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(238, 242, 247, .96));
  box-shadow:
    12px 12px 24px rgba(163, 177, 198, .42),
    -12px -12px 24px rgba(255, 255, 255, .92),
    inset 0 1px 0 rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .96;
  user-select: none;
  -webkit-user-drag: none;
}

/* =========================================================
  CARD
========================================================= */
.card {
  grid-area: card;
  width: 100%;
  max-width: 460px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(238, 242, 247, .96));
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: calc(var(--radius) + 6px);
  padding: var(--space-card);
  box-shadow:
    12px 12px 24px rgba(163, 177, 198, .42),
    -12px -12px 24px rgba(255, 255, 255, .92),
    inset 0 1px 0 rgba(255, 255, 255, .86);
  backdrop-filter: blur(6px);
  justify-self: center;
}

/* =========================================================
  BRAND
========================================================= */
.brand {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  margin-bottom: 2px;
}

.brand .b1 {
  font-size: var(--fs-brand);
  color: #0b1220;
  letter-spacing: .2px;
}

.brand .b2 {
  font-size: var(--fs-brand);
  margin-left: -2px;
  display: inline-block;
  background: var(--primaryGrad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* =========================================================
  TITLE & HINT
========================================================= */
h2 {
  text-align: center;
  font-size: var(--fs-h2);
  margin: 2px 0 6px;
  color: #0b1220;
}

.hint {
  text-align: center;
  font-size: var(--fs-note);
  color: #5b6b84;
  margin-bottom: 10px;
}

.hint b {
  color: #0b1220;
}

/* =========================================================
  FORM
========================================================= */
label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  font-size: var(--fs-label);
  color: #0b1220;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: var(--pad-y) var(--pad-x);
  margin-top: 6px;
  border: none;
  outline: none;
  border-radius: var(--radius);
  background: #EEF2F7;
  color: #0b1220;
  box-shadow:
    inset 5px 5px 10px rgba(163, 177, 198, .32),
    inset -5px -5px 10px rgba(255, 255, 255, .88);
  transition:
    box-shadow .15s ease,
    transform .05s ease;
  font-size: var(--fs-input);
}

input:focus {
  box-shadow:
    inset 3px 3px 6px rgba(163, 177, 198, .30),
    inset -3px -3px 6px rgba(255, 255, 255, .88),
    0 0 0 3px rgba(11, 99, 255, .16);
}

.note {
  display: block;
  margin-top: 6px;
  color: #5b6b84;
  font-size: var(--fs-note);
  line-height: 1.3;
}

.row {
  margin-top: 12px;
}

/* Pengganti inline style display:none */
.is-hidden {
  display: none !important;
}

/* =========================================================
  BUTTON
========================================================= */
.btn {
  width: 100%;
  padding: var(--pad-y) var(--pad-x);
  margin-top: 14px;
  border: none;
  border-radius: calc(var(--radius) + 2px);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-btn);
  cursor: pointer;
  background: var(--primaryGrad);
  box-shadow:
    0 14px 26px rgba(11, 99, 255, .30),
    0 8px 18px rgba(0, 0, 0, .08),
    0 2px 4px rgba(255, 255, 255, .32) inset;
  transition:
    transform .05s ease,
    filter .15s ease,
    box-shadow .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn:hover {
  filter: brightness(1.02) saturate(1.02);
  box-shadow:
    0 18px 32px rgba(11, 99, 255, .36),
    0 10px 22px rgba(0, 0, 0, .10),
    0 2px 4px rgba(255, 255, 255, .35) inset;
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  opacity: .75;
  cursor: not-allowed;
}

.btn__slot {
  width: 1.2em;
  height: 1.2em;
  display: grid;
  place-items: center;
}

.btn__ghost {
  width: 1.2em;
  height: 1.2em;
}

.btn__spinner {
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .55);
  border-right-color: transparent;
  animation: spin .8s linear infinite;
  visibility: hidden;
}

.btn[data-loading="true"] .btn__spinner {
  visibility: visible;
}

.btn__icon-check {
  width: 1.1em;
  height: 1.1em;
  display: none;
}

.btn[data-state="sent"] .btn__icon-check {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
  MESSAGE
========================================================= */
#msg {
  min-height: 1.2em;
  text-align: center;
  font-size: var(--fs-note);
  margin-top: 8px;
}

#msg.ok {
  color: #067647;
}

#msg.err {
  color: #d92d20;
}

#emailInfo {
  margin-top: 8px;
  font-size: var(--fs-note);
  color: #334155;
  text-align: center;
}

#otp {
  letter-spacing: .3em;
  text-align: center;
  font-weight: 600;
}

/* =========================================================
  BACK LINK & FOOTER
========================================================= */
.back {
  margin-top: 12px;
  text-align: center;
  font-size: var(--fs-note);
  color: #334155;
}

.back a {
  color: #0B63FF;
  text-decoration: none;
}

.back a:hover {
  text-decoration: underline;
}

footer {
  margin-top: 12px;
  text-align: center;
  color: #5b6b84;
  font-size: 10px;
}

/* =========================================================
  DESKTOP RESPONSIVE
========================================================= */
@media (min-width: 960px) {
  body {
    align-items: center;
  }

  .layout {
    grid-template-columns: minmax(420px, 1fr) minmax(460px, 1fr);
    grid-template-areas: "visual card";
    align-items: stretch;
    column-gap: clamp(24px, 4vw, 42px);
  }

  .side-visual {
    display: block;
  }

  .card {
    max-width: none;
    width: 100%;
  }
}

/* =========================================================
  SMALL HEIGHT RESPONSIVE
========================================================= */
@media (max-height: 640px) {
  body {
    align-items: flex-start;
  }

  .card {
    margin-top: 10px;
    margin-bottom: 12px;
  }
}

/* =========================================================
  REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:active {
    transform: none;
  }

  .btn__spinner {
    animation: none;
  }
}