/* ============================================================
   Relay — auth (login / register)  ·  premium dark + biru, RINGAN
   (tanpa WebGL, tanpa blur besar, tanpa backdrop-filter — hemat GPU)
   ============================================================ */
#webgl { display: none; }

body {
  display: flex; min-height: 100dvh; align-items: center; justify-content: center; padding: 24px;
  position: relative;
  /* glow biru + ungu murni via radial-gradient (gratis, tanpa blur/animasi) */
  background:
    radial-gradient(55% 50% at 20% 28%, rgba(59,116,255,.20), transparent 60%),
    radial-gradient(50% 50% at 84% 82%, rgba(122,92,255,.16), transparent 60%),
    radial-gradient(135% 120% at 50% -10%, #0c1426 0%, #070a14 54%, #04050b 100%);
  background-attachment: fixed;
}
/* grid titik halus statis */
.auth-grid { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(58% 58% at 50% 45%, #000, transparent 78%);
  mask-image: radial-gradient(58% 58% at 50% 45%, #000, transparent 78%);
}

.auth-top { position: fixed; top: 0; left: 0; right: 0; padding: 22px clamp(20px, 5vw, 56px); z-index: 2; }
.auth-top .brand { font-family: var(--font-display); font-weight: 800; font-size: 22px; display: inline-flex; align-items: center; gap: 10px; }
.auth-top .logo-mark { width: 26px; height: 26px; }

/* ---- kartu (solid, tanpa backdrop blur) ---- */
.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 432px;
  background: linear-gradient(180deg, #161b26, #0d111a);
  border: 1px solid rgba(255,255,255,.09); border-radius: 24px;
  padding: 40px 36px 34px;
  box-shadow: 0 30px 70px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
  animation: cardIn .5s cubic-bezier(.16,.84,.44,1) both;
}
/* aksen gradien tipis di tepi atas */
.auth-card::before {
  content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #5b9bff, #7a5cff, transparent);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .auth-card { animation: none; } }

.auth-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--accent-hi, #6f97ff); margin-bottom: 12px; }
.auth-card h1 { font-family: var(--font-display); font-weight: 800; font-size: 31px; letter-spacing: -1px; margin-bottom: 7px; color: #f3f6fc; }
.auth-card .sub { color: var(--muted, #9aa3b2); font-size: 14.5px; margin-bottom: 26px; }

.auth-form { display: flex; flex-direction: column; gap: 17px; }
.auth-form .field > span { display: block; font-size: 13px; font-weight: 500; color: #aeb6c4; margin-bottom: 7px; }
.auth-form .input {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.1);
  color: #f1f4fa; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.auth-form .input::placeholder { color: #6b7484; }
.auth-form .input:hover { border-color: rgba(255,255,255,.18); }
.auth-form .input:focus { outline: none; border-color: #4d7cff; box-shadow: 0 0 0 3px rgba(59,116,255,.18); }
.auth-form .btn { margin-top: 8px; }
.btn-block { width: 100%; }
.auth-form .btn-primary {
  padding: 14px; border-radius: 100px; font-weight: 700; font-size: 15.5px;
  background: linear-gradient(180deg, #4d8bff, #2f6bff);
  box-shadow: 0 10px 24px rgba(47,107,255,.34), inset 0 1px 0 rgba(255,255,255,.25);
  transition: filter .15s, transform .12s;
}
.auth-form .btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.auth-form .btn-primary:active { transform: translateY(0); }

.auth-error { color: var(--danger, #ff6b6b); font-size: 14px; min-height: 18px; }
.auth-alt { margin-top: 22px; font-size: 14px; color: var(--muted, #9aa3b2); text-align: center; }
.auth-alt a { color: var(--accent-hi, #6f97ff); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }

/* pemisah + tombol Google */
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--muted, #9aa3b2); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.12); }
.google-btn { display: flex; justify-content: center; min-height: 42px; }

@media (max-width: 480px) { .auth-card { padding: 32px 24px 28px; } }
