/* ==========================================================================
   Auth / Splash — ZØRVAE 3D
   ========================================================================== */
.auth-shell {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-columns: 1.05fr .95fr;
}

/* ------------------------------------------------------------------ splash */
.splash {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(900px 600px at 50% 45%, #101017, #040406 70%);
  transition: opacity .5s var(--ease), visibility .5s;
}
.splash.is-done { opacity: 0; visibility: hidden; }
.splash__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; width: min(420px, 84vw); }
.splash__logo { height: clamp(84px, 14vw, 132px); filter: drop-shadow(0 12px 34px rgba(255, 31, 46, .38)); animation: logo-in .9s var(--ease) both; }
@keyframes logo-in { from { opacity: 0; transform: translateY(14px) scale(.94); filter: blur(8px); } }
.splash__name {
  font-family: var(--font-display); font-size: 12px; letter-spacing: .52em; text-indent: .52em;
  color: var(--text-1); text-transform: uppercase;
}
.splash__bar { width: 100%; height: 2px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.splash__bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--red-600), var(--red-400), #fff); box-shadow: 0 0 14px var(--red-glow); transition: width .3s linear; }
.splash__status { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--text-2); text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
.splash__status .dotpulse { width: 6px; height: 6px; border-radius: 50%; background: var(--red-500); animation: pulse 1.1s infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }

/* -------------------------------------------------------------------- hero */
.auth-hero { position: relative; padding: clamp(28px, 5vw, 68px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; overflow: hidden; }
.auth-hero__glow {
  position: absolute; width: 720px; height: 720px; right: -220px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 31, 46, .22), transparent 62%); filter: blur(20px); pointer-events: none;
}
.auth-hero__logo { width: min(480px, 88%); margin: 6px 0 10px; filter: drop-shadow(0 22px 50px rgba(0, 0, 0, .8)) drop-shadow(0 0 26px rgba(255, 31, 46, .22)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.auth-hero__title {
  font-family: var(--font-display); font-size: clamp(24px, 3vw, 38px); line-height: 1.12; margin: 0 0 14px; letter-spacing: .01em;
}
.auth-hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, #fff, #ff8a94 40%, var(--red-500) 70%, #7d0611);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-hero__lead { color: var(--text-1); font-size: 14.5px; max-width: 52ch; margin: 0; }
.auth-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 26px; padding: 0; list-style: none; }
.auth-features li { display: flex; gap: 9px; align-items: flex-start; font-size: 12.8px; color: var(--text-1); }
.auth-features svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--red-400); }
.auth-hero__foot { display: flex; gap: 22px; flex-wrap: wrap; font-size: 11px; color: var(--text-2); letter-spacing: .1em; text-transform: uppercase; }
.auth-hero__foot strong { color: var(--text-1); }

/* -------------------------------------------------------------------- form */
.auth-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 56px);
  min-width: 0;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 26px 26px 22px;
  animation: card-in .5s .12s var(--ease) both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(16px); } }
.auth-card__head { margin-bottom: 18px; }
.auth-card__title { font-family: var(--font-display); font-size: 18px; letter-spacing: .1em; margin: 0 0 6px; text-transform: uppercase; }
.auth-card__sub { color: var(--text-1); font-size: 12.8px; margin: 0; }
.auth-card__note {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  background: rgba(255, 31, 46, .1);
  border: 1px solid rgba(255, 31, 46, .3);
  color: #ffc4c9;
  font-size: 12.2px;
  line-height: 1.5;
}

.auth-form { display: flex; flex-direction: column; gap: 4px; }
.auth-form__row { display: none; }
.auth-form__row.is-active { display: block; animation: fade-up .3s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
.auth-error {
  display: none; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); margin-bottom: 12px;
  background: rgba(255, 31, 46, .12); border: 1px solid rgba(255, 31, 46, .45); color: #ffc4c9; font-size: 12.5px;
}
.auth-error.is-on { display: flex; animation: shake .35s var(--ease); }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }

.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 7px; border: none; background: transparent; color: var(--text-2);
  cursor: pointer; display: grid; place-items: center;
}
.pw-toggle:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.pw-meter { display: flex; gap: 4px; margin-top: 7px; }
.pw-meter i { height: 3px; flex: 1; border-radius: 99px; background: rgba(255, 255, 255, .12); transition: background .2s; }
.pw-meter[data-score="1"] i:nth-child(-n+1) { background: var(--red-500); }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: var(--warn); }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: #b6ff6a; }
.pw-meter[data-score="4"] i { background: var(--ok); }

.auth-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 16px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.auth-switch { text-align: center; font-size: 12.5px; color: var(--text-2); margin-top: 16px; }
.auth-switch button { background: none; border: none; color: var(--red-400); font-weight: 700; cursor: pointer; padding: 0 3px; }
.auth-switch button:hover { color: #fff; text-decoration: underline; }
.auth-legal { text-align: center; font-size: 11px; color: var(--text-2); margin-top: 18px; line-height: 1.6; }

.auth-trust { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 16px; font-size: 11px; color: var(--text-2); letter-spacing: .06em; }
.auth-trust svg { width: 13px; height: 13px; color: var(--ok); }

/* HP / tablet / jendela pendek (termasuk "mode desktop" di HP):
   hero dipadatkan jadi header kecil → kartu login langsung terlihat. */
@media (max-width: 1100px), (max-height: 800px) {
  .auth-shell { grid-template-columns: 1fr; min-height: auto; }
  .auth-hero {
    padding: 16px 20px 0;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
  .auth-hero .brand { justify-content: center; }
  .auth-hero__logo { width: min(190px, 46%); margin: 2px auto 0; display: block; }
  .auth-hero__title,
  .auth-hero__lead,
  .auth-features,
  .auth-hero__foot { display: none; }
  .auth-hero__glow { width: 340px; height: 340px; right: -120px; top: -150px; opacity: .7; }
  .auth-side { padding: 12px 16px 22px; }
  .auth-card { padding: 20px 18px 16px; }
  .auth-card .auth-legal, .auth-card .auth-trust { display: none; }
  body { overflow: auto; }
}

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { padding-bottom: 0; }
  .auth-hero__logo { width: min(380px, 70%); }
  .auth-features { grid-template-columns: 1fr; }
  .auth-hero__foot { display: none; }
  body { overflow: auto; }
  .splash { position: fixed; }
}
