/* ==========================================================================
   Login & daftar — palet ungu Ekasistem (dimuat hanya di halaman ini, setelah app.css).
   Variabel --primary* ditimpa di sini sehingga semua elemen yang memakai var(--primary...)
   di app.css (tombol, link, fokus input, dsb.) otomatis ikut berganti tanpa diduplikasi.
   ========================================================================== */
:root {
    --primary-50: #F5F1FC;
    --primary-100: #E9D8FD;
    --primary: #7C3AED;
    --primary-600: #6D28D9;
    --primary-700: #5B21B6;
}

/* Beberapa efek di app.css memakai rgba() hijau langsung (bukan var), ditimpa di sini agar tetap lembut & senada. */
.auth :focus-visible { outline-color: rgba(124, 58, 237, .35); }
.auth .btn-primary { box-shadow: 0 1px 2px rgba(91, 33, 182, .3); }
.auth .btn-primary:hover { box-shadow: 0 10px 22px rgba(124, 58, 237, .28); transform: translateY(-1px); }
.auth .input:focus, .auth .select:focus { box-shadow: 0 0 0 4px rgba(124, 58, 237, .13); }
.auth .plan-option input:checked + .plan-card { box-shadow: 0 0 0 3px rgba(124, 58, 237, .14); }
.auth .plan-option input:focus-visible + .plan-card { outline-color: rgba(124, 58, 237, .35); }

/* Panel ilustrasi: gradasi ungu tua yang lembut, bukan hijau pekat. */
.auth-art {
    background:
        radial-gradient(760px 480px at 12% -6%, rgba(167, 139, 250, .32), transparent 60%),
        radial-gradient(640px 420px at 100% 100%, rgba(124, 58, 237, .22), transparent 60%),
        linear-gradient(165deg, #3B1272, #0b1220 78%);
}
.auth-art::after { background: rgba(167, 139, 250, .14); }
.auth-art p { color: #d9cdf5; }
.auth-art li { color: #d9cdf5; }
.auth-art li .icon { color: #b9a0f5; }

.price-was-inline { color: #64748b; font-size: .85em; text-decoration-color: #dc2626; text-decoration-thickness: 2px; }

/* ===== Lupa & reset password ===== */
.auth-state { text-align: center; margin-bottom: 20px; }
.auth-state h1 { margin: 14px 0 8px; }
.auth-state p { margin: 0; line-height: 1.6; }
.auth-state-ico { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: rgba(124, 58, 237, .12); color: #7C3AED; }
.auth-state-ico.is-warn { background: rgba(245, 158, 11, .15); color: #d97706; }
.auth-tips { list-style: none; margin: 0 0 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; border-radius: 12px; background: var(--surface-2, #faf8ff); border: 1px solid var(--line); font-size: 13.5px; }
.auth-tips li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.auth-tips .icon, .auth-tips svg { flex: none; margin-top: 2px; color: #7C3AED; }

.pw-meter { height: 6px; margin: -6px 0 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 99px; background: #ef4444; transition: width .2s, background .2s; }
.pw-meter span.lvl-2 { background: #f59e0b; }
.pw-meter span.lvl-3 { background: #22c55e; }
.pw-meter span.lvl-4 { background: #16a34a; }
.pw-meter-label { margin-bottom: 10px; font-size: 12.5px; color: var(--muted); }
.pw-rules { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font-size: 13px; color: var(--muted); }
.pw-rules li { display: flex; align-items: center; gap: 8px; }
.pw-rules i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong, var(--line)); position: relative; transition: background .15s, border-color .15s; }
.pw-rules li.is-ok { color: var(--ink); }
.pw-rules li.is-ok i { background: #16a34a; border-color: #16a34a; }
.pw-rules li.is-ok i::after { content: ""; position: absolute; left: 3px; top: 0; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pw-match { margin: -6px 0 14px; font-size: 13px; }
.pw-match.is-ok { color: #16a34a; }
.pw-match.is-bad { color: #dc2626; }
@media (max-width: 420px) { .pw-rules { grid-template-columns: minmax(0, 1fr); } }


/* Pesan cek voucher */
.voucher-msg { margin-top: 6px; font-size: 13px; line-height: 1.5; min-height: 0; }
.voucher-msg:empty { display: none; }
.voucher-msg.is-ok { color: #15803d; font-weight: 600; }
.voucher-msg.is-bad { color: #dc2626; font-weight: 600; }
.voucher-msg.is-wait { color: #64748b; }
