/* ============================================================
   AIBIO — /auth "Pilot" (TASK-012, v0.99.170; dasar TASK-011). Di atas css/mine.css (token --gm-*).
   Id/kelas form dipertahankan dari auth lama (auth.html script tidak diubah).
   AI-ANCHOR: CSS_AUTH_GM
   ============================================================ */
[hidden] { display: none !important; }
.auth-gm .gm-top .auth-nav-home { flex: none; }

.gm-auth { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; padding-bottom: 48px; }
@media (min-width: 960px) {
	.gm-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); align-items: start; gap: 48px; padding-top: 48px; }
	.gm-auth-stage { position: sticky; top: 96px; }
}

/* panggung kiri (HP: scene pendek di atas form) */
.gm-auth-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.gm-auth-stage .gm-plate { padding-inline-end: 16px; }
.gm-auth-stage .gm-plate .gm-num { font-size: 16px; line-height: 1.45; white-space: normal; }
.gm-auth-stage .gm-scene { aspect-ratio: auto; height: 160px; }
.gm-auth-stage .gm-scene img { object-fit: cover; }
.gm-perks { display: none; margin: 0; padding: 0; list-style: none; }
@media (min-width: 960px) {
	.gm-auth-stage .gm-scene { aspect-ratio: 360 / 300; height: auto; }
	.gm-auth-stage .gm-plate .gm-num { font-size: 20px; }
	.gm-perks { display: grid; gap: 8px; }
	.gm-perks li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 4px 16px 4px 8px; border: 3px solid var(--gm-line); border-radius: var(--gm-r1); background: linear-gradient(#26315e, #1b2446); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1); font-size: 16px; font-weight: 900; }
	.gm-perks svg, .gm-perks img { width: 40px; height: 40px; flex: none; object-fit: contain; }
}
@media (max-width: 959px) {
	.gm-auth-stage { padding: 8px; }
	.gm-auth-stage::before, .gm-auth-stage::after { display: none; }
}

/* kartu form */
.auth-form-col { display: grid; gap: 16px; padding: 24px 16px 16px; }
.auth-brand-panel { display: grid; gap: 8px; text-align: center; }
.brand-headline { margin: 0; font: 400 clamp(32px, 7vw, 40px)/1.1 var(--gm-f-title); color: #fff; letter-spacing: .01em; text-shadow: 0 3px 0 var(--gm-line); text-wrap: balance; }
.brand-subtext { margin: 0; color: var(--gm-cream); font-size: 16px; font-weight: 800; line-height: 1.45; }
.auth-form-panel { display: grid; gap: 16px; padding: 16px; }

.google-auth-panel { display: flex; justify-content: center; min-height: 44px; }
.google-btn-wrap { display: flex; justify-content: center; width: 100%; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--gm-dim); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 3px; border-radius: 2px; background: #26315e; }

#auth-form { display: grid; gap: 16px; }
.form-row-passwords { display: grid; gap: 16px; }
.field { position: relative; display: grid; gap: 8px; }
.field-label { color: var(--gm-mut); font-size: 14px; font-weight: 900; }
.field-input {
	-webkit-appearance: none; appearance: none;
	width: 100%; min-height: 52px; padding: 0 48px 0 16px;
	border: 3px solid var(--gm-line); border-radius: var(--gm-r1);
	background: #f4f7ff; color: #0b1024;
	box-shadow: inset 0 3px 0 rgba(0, 0, 0, .12);
	font: 800 16px/1.2 var(--gm-f-body);
	transition: box-shadow .2s cubic-bezier(.22, 1, .36, 1), border-color .2s ease;
}
.field-input:focus { outline: none; border-color: var(--gm-gold-d); box-shadow: inset 0 3px 0 rgba(0, 0, 0, .12), 0 0 0 4px rgba(255, 201, 51, .45); }
#ref { padding-right: 16px; }
.field-icon { position: absolute; right: 16px; top: 44px; color: #6b7a99; pointer-events: none; }
.btn-toggle-pass { -webkit-appearance: none; appearance: none; position: absolute; right: 4px; top: 34px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #6b7a99; cursor: pointer; }
.btn-toggle-pass:hover { color: #0b1024; }
.field.has-error .field-input { border-color: #d63a2f; box-shadow: 0 0 0 4px rgba(214, 58, 47, .3); }
.field-error-msg { color: #ff8a7a; font-size: 14px; font-weight: 800; }
.global-error { padding: 12px 16px; border: 3px solid #7a1c14; border-radius: var(--gm-r1); background: #3b120d; color: #ffb3a8; font-size: 14px; font-weight: 800; }

.pass-strength-wrap { display: grid; gap: 4px; margin-top: -8px; }
.pass-strength-bar { height: 8px; border-radius: 4px; background: #26315e; overflow: hidden; }
.pass-strength-fill { width: 0; height: 100%; border-radius: 4px; transition: width .35s cubic-bezier(.22, 1, .36, 1), background-color .35s ease; }
.pass-strength-text { color: var(--gm-dim); font-size: 12px; font-weight: 800; }

.login-options-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.check-label { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--gm-mut); font-size: 14px; font-weight: 800; line-height: 1.45; cursor: pointer; }
.check-box { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 3px solid var(--gm-line); border-radius: 8px; background: #f4f7ff; transition: background-color .2s ease; }
.check-box svg { width: 16px; height: 16px; stroke: #0b1024; opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.check-label input:checked + .check-box { background: var(--gm-gold); }
.check-label input:checked + .check-box svg { opacity: 1; transform: none; }
.check-label input:focus-visible + .check-box { outline: 3px solid var(--gm-gold); outline-offset: 2px; }
.link-forgot { color: var(--gm-gold-l); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.login-options-row .link-forgot { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.auth-note { margin: 0; font-size: 14px; font-weight: 800; }
.auth-note.good { color: var(--gm-green); }

.btn-submit-primary { margin-top: 8px; }
.btn-mode-switch { -webkit-appearance: none; appearance: none; min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--gm-gold-l); font: 900 16px/1.45 var(--gm-f-body); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; cursor: pointer; }
.btn-mode-switch:hover { color: #fff; }

.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; color: var(--gm-cream); font-size: 12px; font-weight: 800; }
.trust-row span { display: inline-flex; align-items: center; gap: 4px; }
.trust-row svg { width: 16px; height: 16px; }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: gm-spin .7s linear infinite; }
@keyframes gm-spin { to { transform: rotate(360deg); } }
.btn-submit-primary .spinner { display: inline-block; vertical-align: -2px; }
html.tg-auth-pending .auth-form-wrap { opacity: .4; pointer-events: none; }

/* toast (ui.js) */
#toasts { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; max-width: 420px; padding: 12px 16px; border: 3px solid var(--gm-line); border-radius: var(--gm-r1); background: #1b2446; color: var(--gm-cream); font-size: 14px; font-weight: 800; box-shadow: 0 6px 0 rgba(0, 0, 0, .35); animation: gm-pop .35s cubic-bezier(.34, 1.56, .64, 1); transition: opacity .3s ease, transform .3s ease; }
.toast.out { opacity: 0; transform: translateY(8px); }
.toast.bad { background: #3b120d; }
.toast.good { background: #1d3312; }
.toast-ico { display: inline-flex; color: var(--gm-gold); }
.toast-ico svg { width: 16px; height: 16px; }
@keyframes gm-pop { from { opacity: 0; transform: scale(.9) translateY(12px); } }

/* masuk halus */
.gm-auth > * { animation: gm-in .6s cubic-bezier(.22, 1, .36, 1) both; }
.gm-auth > *:nth-child(2) { animation-delay: .08s; }
@keyframes gm-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
	.gm-auth > *, .toast { animation: none; }
	.field-input, .check-box svg, .pass-strength-fill { transition: none; }
}
/* TASK-023: panggung login = visual home (robot menambang + kereta koin → wallet) */
.au-scene { display: grid; place-items: center; min-height: 176px; padding: 16px; background: radial-gradient(70% 60% at 50% 60%, rgba(94, 240, 255, .14), transparent 70%), var(--gm-slot); }
.au-scene .wb-wrap.au-wb { width: 176px; filter: drop-shadow(0 12px 20px rgba(94, 240, 255, .25)); }
.au-train { margin-top: 0; }
@media (max-width: 399px) { .au-scene .wb-wrap.au-wb { width: 144px; } }

/* ---------- AI-ANCHOR: CSS_AUTH_V2 — TASK-051 (owner #116): kotak login/daftar satu tema dengan sheet daftar onboarding ----------
   Input putih → kaca gelap bergaris cyan (fokus menyala), pemisah "OR" neon memudar, panel form berbingkai neon tipis.
   Tombol Google: bingkai .gm-gsi (css/mine.css). Hanya transform/opacity untuk animasi. */
.auth-form-panel { position: relative; border-color: #0b1024; background: linear-gradient(180deg, rgba(16, 23, 58, .96), rgba(8, 12, 32, .98));
	box-shadow: 0 0 0 1px rgba(94, 240, 255, .35), 0 0 24px rgba(94, 240, 255, .12), inset 0 4px 8px rgba(0, 0, 0, .4); }
.auth-form-panel::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px; pointer-events: none;
	background: linear-gradient(90deg, transparent, var(--gm-cyan), var(--gm-gold), transparent); box-shadow: 0 0 8px rgba(94, 240, 255, .7);
	transform-origin: center; animation: auth-v2-bar 3.2s ease-in-out infinite; }
@keyframes auth-v2-bar { 50% { transform: scaleX(.6); opacity: .6; } }
.auth-divider { color: rgba(94, 240, 255, .7); }
.auth-divider::before { height: 1px; background: linear-gradient(90deg, transparent, rgba(94, 240, 255, .55)); }
.auth-divider::after { height: 1px; background: linear-gradient(90deg, rgba(94, 240, 255, .55), transparent); }
.field-label { color: #c8d4f5; font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; transition: color .2s ease; }
.field:focus-within .field-label { color: var(--gm-cyan); }
.field-input { border: 1px solid rgba(94, 240, 255, .25); background: linear-gradient(180deg, rgba(8, 12, 32, .92), rgba(16, 23, 58, .92)); color: var(--gm-cream);
	box-shadow: inset 0 0 12px rgba(94, 240, 255, .08); caret-color: var(--gm-cyan); }
.field-input:focus { border-color: var(--gm-cyan); box-shadow: 0 0 0 3px rgba(94, 240, 255, .2), 0 0 16px rgba(94, 240, 255, .35); }
.field-input:-webkit-autofill, .field-input:-webkit-autofill:focus { -webkit-text-fill-color: var(--gm-cream); -webkit-box-shadow: 0 0 0 1000px #0c1230 inset; transition: background-color 9999s; }
.field-icon { top: 40px; color: rgba(94, 240, 255, .6); }
.btn-toggle-pass { top: 28px; color: rgba(200, 212, 245, .7); }
.btn-toggle-pass:hover, .btn-toggle-pass:focus-visible { color: var(--gm-cyan); }
.btn-toggle-pass:focus-visible { outline: 2px solid var(--gm-cyan); outline-offset: -2px; }
html.gm-hidden .auth-form-panel::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .auth-form-panel::before { animation: none; } }
