@charset "UTF-8";

/* =====================================================================
   Auth AIBIO UI — Split Panel & Glassmorphism Design System
   ===================================================================== */

:root {
	/* Colors from design-tokens.js / AIBIO Official Palette */
	--dt-bg-base: #000000;
	--dt-panel-bg: #0A0A0A;
	--dt-card-bg: #0D0D0D;
	--dt-card-secondary: #171717;
	--dt-border-subtle: rgba(255, 255, 255, 0.08);
	--dt-border-strong: rgba(255, 255, 255, 0.16);
	--dt-border-focus: #4D7EFF;
	--dt-text-primary: #E8F2EE;
	--dt-text-secondary: rgba(232, 242, 238, 0.72);
	--dt-text-muted: #9AA7A1;
	--dt-brand-orange: #4D7EFF;
	--dt-brand-orange-hover: #C8D8FF;
	--dt-brand-orange-muted: rgba(77, 126, 255, 0.14);
	--dt-brand-orange-glow: rgba(77, 126, 255, 0.35);
	--dt-brand-gold: #4D7EFF;
	--dt-brand-cream: #C8D8FF;
	--dt-error-red: #FF5A6A;
	--dt-success-green: #7AA0FF;

	/* Radii */
	--r-card: 24px;
	--r-input: 12px;
	--r-btn: 12px;
	--r-pill: 9999px;

	/* Motion & Shadow */
	--transition-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-mode: 200ms cubic-bezier(0.4, 0, 0.2, 1);
	--shadow-card: 0 24px 64px rgba(0, 0, 0, 0.6);
	--shadow-orange-glow: 0 0 20px rgba(255, 122, 61, 0.25);
}

/* Base Reset & Setup */
html, body {
	margin: 0;
	padding: 0;
	font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
	color: var(--dt-text-primary);
	background-color: var(--dt-bg-base);
	min-height: 100dvh;
	overflow-x: hidden;
}

*:focus-visible {
	outline: 2px solid var(--dt-brand-orange);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		transform: none !important;
		animation: none !important;
	}
}

/* Page Overlay & Background */
.page-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	background: var(--dt-bg-base);
}

/* =====================================================================
   7. NAVBAR FIX & FLOATING BUTTON REMOVAL
   ===================================================================== */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 72px;
	z-index: 100;
	background: rgba(10, 10, 10, 0.85);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--dt-border-subtle);
	padding: 0 48px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-sizing: border-box;
}

.navbar .brand {
	color: var(--dt-text-primary);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 12px;
}

.navbar .nav-links-wrap {
	display: flex;
	align-items: center;
	gap: 32px;
}

.navbar .nav-links {
	display: flex;
	align-items: center;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.navbar .nav-link {
	color: var(--dt-text-secondary);
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	transition: color var(--transition-fast);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
	color: var(--dt-text-primary);
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--dt-text-primary);
	cursor: pointer;
	padding: 8px;
}

/* Hide desktop close button always */
.btn-menu-close {
	display: none !important;
}

@media (min-width: 768px) {
	.navbar .nav-links-wrap {
		display: flex !important;
		position: static !important;
		background: transparent !important;
		padding: 0 !important;
	}
	.btn-menu-close {
		display: none !important;
	}
}

/* =====================================================================
   2. AUTH MODAL WRAPPER & SPLIT CARD CONTAINER
   ===================================================================== */
.auth-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100dvh;
	padding: 96px 24px 48px 24px;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.75);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.auth-card {
	width: 100%;
	max-width: 960px;
	min-height: 560px;
	max-height: 90vh;
	border-radius: var(--r-card);
	overflow-y: auto;
	display: grid;
	grid-template-columns: 42% 58%;
	position: relative;
	background: rgba(18, 18, 20, 0.85);
	-webkit-backdrop-filter: blur(24px) saturate(140%);
	backdrop-filter: blur(24px) saturate(140%);
	border: 1px solid var(--dt-border-subtle);
	box-shadow: var(--shadow-card);
	box-sizing: border-box;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.auth-card::-webkit-scrollbar {
	width: 6px;
}

.auth-card::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 4px;
}

/* =====================================================================
   PANEL KIRI (BRAND)
   ===================================================================== */
.auth-brand-panel {
	background: linear-gradient(165deg, #171717 0%, #0A0A0A 100%);
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 48px 32px 48px 32px;
	overflow: hidden;
	box-sizing: border-box;
}

.auth-brand-panel::before {
	content: "";
	position: absolute;
	left: -80px;
	bottom: -80px;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, var(--dt-brand-orange-muted) 0%, rgba(0, 0, 0, 0) 70%);
	pointer-events: none;
	opacity: 0.85;
}

.brand-logo-area {
	display: flex;
	align-items: center;
	gap: 12px;
	z-index: 2;
}

.brand-logo-img {
	width: 32px;
	height: 32px;
}

.brand-logo-name {
	font-size: 20px;
	font-weight: 700;
	color: var(--dt-text-primary);
	letter-spacing: -0.02em;
}

.brand-spacer {
	flex-grow: 1;
	min-height: 32px;
}

.brand-headline {
	font-weight: 800;
	font-size: 40px;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--dt-text-primary);
	margin: 0 0 16px 0;
	white-space: pre-line;
	z-index: 2;
	transition: opacity var(--transition-mode);
}

.brand-subtext {
	font-size: 14px;
	line-height: 1.5;
	color: var(--dt-text-secondary);
	max-width: 320px;
	margin: 0 0 32px 0;
	z-index: 2;
	transition: opacity var(--transition-mode);
}

.btn-mode-switch {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--r-pill);
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	color: var(--dt-text-primary);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	transition: all var(--transition-fast);
	z-index: 2;
	font-family: inherit;
}

.btn-mode-switch:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.5);
	transform: translateY(-1px);
}

/* =====================================================================
   PANEL KANAN (FORM)
   ===================================================================== */
.auth-form-panel {
	background: rgba(255, 255, 255, 0.015);
	padding: 48px 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	box-sizing: border-box;
}

/* Close Button (X) inside card */
.btn-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--dt-text-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all var(--transition-fast);
	z-index: 10;
}

.btn-close:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.3);
	transform: scale(1.05);
}

.btn-close svg {
	width: 16px;
	height: 16px;
}

/* =====================================================================
   3. GOOGLE SIGN-IN & ONE TAP ERADICATION
   ===================================================================== */
/* Eradicate Google One Tap Prompt Overlay Completely */
#credential_picker_container,
iframe[id^="credential_picker_iframe"] {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	z-index: -9999 !important;
}

.google-auth-panel {
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.google-btn-wrap {
	display: flex;
	justify-content: center;
	width: 100%;
}

.auth-divider {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 16px 0 24px 0;
	color: var(--dt-text-muted);
	font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
	content: "";
	flex: 1;
	border-bottom: 1px solid var(--dt-border-subtle);
}

.auth-divider span {
	padding: 0 12px;
}

/* =====================================================================
   5. FILLED INPUT & REGISTER FORM REFINEMENT
   ===================================================================== */
.auth-form-wrap {
	transition: opacity var(--transition-mode), transform var(--transition-mode);
}

/* Grid row for Password & Confirm Password in Register mode */
.form-row-passwords {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0px;
	margin: 0;
}

body.mode-register .form-row-passwords {
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width: 640px) {
	body.mode-register .form-row-passwords {
		grid-template-columns: 1fr;
		gap: 0px;
	}
}

.field {
	position: relative;
	margin-bottom: 16px;
}

.field-input {
	width: 100%;
	height: 48px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--dt-border-subtle);
	border-radius: var(--r-input);
	padding: 16px 48px 8px 16px;
	color: var(--dt-text-primary);
	font-size: 14px;
	font-family: inherit;
	outline: none;
	box-sizing: border-box;
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover, 
.field-input:-webkit-autofill:focus, 
.field-input:-webkit-autofill:active {
	-webkit-box-shadow: inset 0 0 0 1000px #141416 !important;
	-webkit-text-fill-color: var(--dt-text-primary) !important;
	transition: background-color 5000s ease-in-out 0s;
}

.field-label {
	position: absolute;
	left: 14px;
	top: 14px;
	color: var(--dt-text-muted);
	font-size: 14px;
	pointer-events: none;
	transition: all 180ms ease;
	user-select: none;
}

.field-input:focus ~ .field-label,
.field-input:not(:placeholder-shown) ~ .field-label {
	top: 5px;
	font-size: 10px;
	font-weight: 500;
	color: var(--dt-text-secondary);
}

.field-input:focus {
	border-color: var(--dt-brand-orange);
	box-shadow: 0 0 0 3px rgba(255, 122, 61, 0.15);
	background: rgba(255, 255, 255, 0.06);
}

.field-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--dt-text-muted);
	transition: color var(--transition-fast);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.btn-toggle-pass {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: var(--dt-text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color var(--transition-fast);
}

.btn-toggle-pass:hover {
	color: var(--dt-text-primary);
}

/* Error State */
.field.has-error .field-input {
	border-color: var(--dt-error-red);
}

.field.has-error .field-label {
	color: var(--dt-error-red);
}

.field-error-msg {
	font-size: 12px;
	color: var(--dt-error-red);
	margin-top: 4px;
	padding-left: 4px;
}

/* Password Strength Indicator */
.pass-strength-wrap {
	margin-top: -8px;
	margin-bottom: 12px;
	padding: 0 4px;
}

.pass-strength-bar {
	height: 2.5px;
	width: 100%;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	overflow: hidden;
}

.pass-strength-fill {
	height: 100%;
	width: 0%;
	transition: width 200ms ease, background-color 200ms ease;
}

.pass-strength-text {
	font-size: 10px;
	color: var(--dt-text-muted);
	margin-top: 4px;
	text-align: right;
}

/* Login Options Row (Remember Me & Forgot Pass) */
.login-options-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 4px 0 24px 0;
}

.check-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--dt-text-secondary);
	cursor: pointer;
	user-select: none;
}

.check-box {
	width: 16px;
	height: 16px;
	border: 1px solid var(--dt-border-strong);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.04);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition-fast);
	flex-shrink: 0;
}

.check-box svg {
	width: 10px;
	height: 10px;
	stroke: #000000;
	opacity: 0;
	transition: opacity var(--transition-fast);
}

.sr-only:checked + .check-box {
	background: var(--dt-brand-orange);
	border-color: var(--dt-brand-orange);
}

.sr-only:checked + .check-box svg {
	opacity: 1;
}

.link-forgot {
	font-size: 12px;
	color: var(--dt-text-secondary);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.link-forgot:hover {
	color: var(--dt-brand-orange);
	text-decoration: underline;
}

/* =====================================================================
   6. SUBMIT BUTTON
   ===================================================================== */
.btn-submit-primary {
	width: 100%;
	height: 48px;
	border-radius: var(--r-btn);
	background: var(--dt-brand-orange);
	color: #000000;
	font-size: 16px;
	font-weight: 700;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all var(--transition-fast);
	box-shadow: 0 4px 18px rgba(255, 122, 61, 0.25);
	font-family: inherit;
	margin-top: 8px;
}

.btn-submit-primary:hover:not(:disabled) {
	background: var(--dt-brand-orange-hover);
	transform: translateY(-1px);
	box-shadow: 0 6px 22px rgba(255, 122, 61, 0.35);
}

.btn-submit-primary:active:not(:disabled) {
	transform: translateY(0);
}

.btn-submit-primary:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(0, 0, 0, 0.2);
	border-radius: 50%;
	border-top-color: #000000;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	100% { transform: rotate(360deg); }
}

/* Global Error Notice */
.global-error {
	background: rgba(255, 90, 106, 0.12);
	border: 1px solid var(--dt-error-red);
	border-radius: var(--r-input);
	padding: 12px 16px;
	font-size: 12px;
	color: var(--dt-text-primary);
	margin-bottom: 16px;
}

/* =====================================================================
   RESPONSIVE LAYOUT (< 900px)
   ===================================================================== */
@media (max-width: 900px) {
	.auth-wrap {
		padding: 64px 12px 24px 12px;
	}

	.auth-card {
		grid-template-columns: 1fr;
		max-width: 480px;
		min-height: auto;
	}

	.auth-brand-panel {
		padding: 24px;
		min-height: 130px;
		justify-content: center;
	}

	.brand-spacer {
		display: none;
	}

	.brand-headline {
		font-size: 24px;
		margin-bottom: 4px;
	}

	.brand-subtext {
		font-size: 12px;
		margin-bottom: 12px;
	}

	.btn-mode-switch {
		padding: 8px 16px;
		font-size: 12px;
	}

	.auth-form-panel {
		padding: 32px 24px;
	}
}

@media (max-width: 767px) {
	.navbar {
		padding: 0 24px;
	}

	.nav-toggle {
		display: block;
	}

	.nav-links-wrap {
		position: fixed;
		top: 0;
		right: -100%;
		bottom: 0;
		width: 280px;
		background: rgba(10, 10, 10, 0.96);
		-webkit-backdrop-filter: blur(16px);
		backdrop-filter: blur(16px);
		flex-direction: column;
		padding: 96px 24px;
		transition: right 0.3s ease;
		z-index: 100;
	}

	.nav-links-wrap.open {
		right: 0;
	}

	.navbar .nav-links {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		gap: 24px;
	}
}

/* ============================================================
   AI-FIX v0994 — .sr-only sebelumnya tidak pernah didefinisikan,
   sehingga checkbox native tampil dobel di samping checkbox custom.
   ============================================================ */
.sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -4px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ==========================================================================
   AI-ANCHOR: CSS_V9933_AUTH_LANDING_GATE
   Landing Gate auth shell — center card, brand strip, gold CTA.
   Freeze: Google GSI / email register-login / Telegram auto-auth handlers.
   ========================================================================== */
body.auth-gate {
	font-family: "Space Grotesk", system-ui, -apple-system, sans-serif !important;
	background: #000000 !important;
	color: #E8F2EE !important;
}
body.auth-gate .page-bg {
	background:
		radial-gradient(900px 480px at 78% -12%, rgba(77, 126, 255, 0.16), transparent 58%),
		radial-gradient(700px 420px at -10% 70%, rgba(77, 126, 255, 0.07), transparent 55%),
		#000000 !important;
}
body.auth-gate .navbar {
	height: 64px !important;
	padding: 0 24px !important;
	background: rgba(0, 0, 0, 0.72) !important;
	border-bottom: 1px solid #2A2A2A !important;
	justify-content: space-between !important;
}
body.auth-gate .navbar .brand span { color: #E8F2EE !important; }
body.auth-gate .auth-nav-home {
	color: #9AA7A1;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid #2A2A2A;
	transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}
body.auth-gate .auth-nav-home:hover {
	color: #C8D8FF;
	border-color: rgba(77, 126, 255, 0.45);
	background: rgba(77, 126, 255, 0.08);
}

body.auth-gate .auth-wrap {
	padding: 96px 16px 48px !important;
	background: transparent !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	align-items: flex-start !important;
	justify-content: center !important;
}
@media (min-width: 720px) {
	body.auth-gate .auth-wrap {
		align-items: center !important;
		padding-top: 96px !important;
	}
}

body.auth-gate .auth-card {
	max-width: 440px !important;
	min-height: 0 !important;
	max-height: none !important;
	width: 100% !important;
	display: flex !important;
	flex-direction: column !important;
	grid-template-columns: none !important;
	overflow: visible !important;
	border-radius: 20px !important;
	background: linear-gradient(165deg, rgba(23, 23, 23, 0.98), rgba(10, 10, 10, 0.98)) !important;
	border: 1px solid #2A2A2A !important;
	box-shadow:
		0 28px 64px rgba(0, 0, 0, 0.55),
		inset 0 0 0 1px rgba(77, 126, 255, 0.08) !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	animation: authGateIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes authGateIn {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	body.auth-gate .auth-card { animation: none !important; }
}

body.auth-gate .auth-brand-panel {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	text-align: center !important;
	padding: 32px 32px 8px !important;
	background: transparent !important;
	overflow: visible !important;
}
body.auth-gate .auth-brand-panel::before { display: none !important; }
body.auth-gate .brand-spacer { display: none !important; }
body.auth-gate .brand-logo-area {
	justify-content: center !important;
	margin-bottom: 16px !important;
}
body.auth-gate .brand-logo-name {
	font-size: 1.15rem !important;
	letter-spacing: 0.04em !important;
	color: #C8D8FF !important;
}
body.auth-gate .brand-headline {
	font-size: clamp(1.55rem, 4vw, 1.85rem) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	margin: 0 0 8px !important;
	color: #E8F2EE !important;
	white-space: normal !important;
	text-align: center !important;
	transition: opacity 200ms ease !important;
}
body.auth-gate .brand-subtext {
	font-size: 14px !important;
	line-height: 1.5 !important;
	color: #9AA7A1 !important;
	max-width: 34ch !important;
	margin: 0 auto 4px !important;
	text-align: center !important;
	transition: opacity 200ms ease !important;
}

body.auth-gate .auth-form-panel {
	padding: 16px 32px 32px !important;
	justify-content: flex-start !important;
	background: transparent !important;
}
body.auth-gate .btn-close { display: none !important; }

body.auth-gate .google-auth-panel { margin: 8px 0 0 !important; }
body.auth-gate .google-btn-wrap {
	display: flex !important;
	justify-content: center !important;
	width: 100% !important;
}
body.auth-gate .auth-divider {
	margin: 16px 0 16px !important;
	color: #9AA7A1 !important;
}
body.auth-gate .auth-divider span {
	background: #0D0D0D !important;
	color: #9AA7A1 !important;
}

body.auth-gate .field-input {
	background: #0A0A0A !important;
	border-color: #2A2A2A !important;
	color: #E8F2EE !important;
	border-radius: 12px !important;
}
body.auth-gate .field-input:focus {
	border-color: rgba(77, 126, 255, 0.65) !important;
	box-shadow: 0 0 0 3px rgba(77, 126, 255, 0.14) !important;
}
body.auth-gate .field-label { color: #9AA7A1 !important; }
body.auth-gate .field-icon { color: #9AA7A1 !important; }

body.auth-gate .btn-submit-primary {
	margin-top: 8px !important;
	width: 100% !important;
	background: #4D7EFF !important;
	color: #0A0A0A !important;
	font-weight: 700 !important;
	border: 0 !important;
	border-radius: 12px !important;
	box-shadow: 0 10px 28px rgba(77, 126, 255, 0.22) !important;
}
body.auth-gate .btn-submit-primary:hover:not(:disabled) {
	background: #C8D8FF !important;
	color: #0A0A0A !important;
	transform: translateY(-1px);
}

body.auth-gate .btn-mode-switch {
	width: 100% !important;
	margin-top: 16px !important;
	align-self: stretch !important;
	border: 0 !important;
	background: transparent !important;
	color: #9AA7A1 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	padding: 12px 8px !important;
	border-radius: 10px !important;
}
body.auth-gate .btn-mode-switch:hover {
	color: #C8D8FF !important;
	background: rgba(77, 126, 255, 0.08) !important;
	transform: none !important;
	border-color: transparent !important;
}

body.auth-gate #tnc-row {
	margin-bottom: 16px !important;
	align-items: flex-start !important;
}
body.auth-gate #tnc-row > span {
	font-size: 12px !important;
	line-height: 1.45 !important;
	color: #9AA7A1 !important;
}
body.auth-gate #ref-note {
	font-size: 12px !important;
	margin-top: 4px !important;
	color: #7AA0FF !important;
}
body.auth-gate .tg-auth-loading {
	text-align: center !important;
	margin-top: 24px !important;
	font-size: 14px !important;
	color: #9AA7A1 !important;
}
body.auth-gate .link-forgot { color: #4D7EFF !important; }
body.auth-gate .link-forgot:hover { color: #C8D8FF !important; }

body.auth-gate.mode-register .form-row-passwords {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 0 !important;
}
@media (max-width: 420px) {
	body.auth-gate .auth-form-panel,
	body.auth-gate .auth-brand-panel {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
	body.auth-gate .navbar { padding: 0 16px !important; }
}

/* AI-ANCHOR: CSS_V9975_AUTH_SPLIT_MINIMAL
   A+B: desktop split + plan mock; mobile minimal no card. Freeze auth IDs / Google / email / TG. */
body.auth-gate.auth-ab {
	font-family: "Space Grotesk", system-ui, sans-serif !important;
	color: #E8EEF8 !important;
	background: #000 !important;
}
body.auth-gate.auth-ab .page-bg {
	background:
		radial-gradient(ellipse 90% 55% at 8% -8%, rgba(77, 126, 255, 0.22), transparent 58%),
		radial-gradient(ellipse 70% 50% at 92% 38%, rgba(77, 126, 255, 0.14), transparent 52%),
		radial-gradient(ellipse 65% 45% at 48% 108%, rgba(77, 126, 255, 0.16), transparent 55%),
		#000 !important;
}
body.auth-gate.auth-ab .navbar {
	height: 64px !important;
	padding: 0 24px !important;
	background: rgba(0, 0, 0, 0.55) !important;
	backdrop-filter: blur(12px);
	border-bottom: 1px solid #2A2A2A !important;
}
body.auth-gate.auth-ab .auth-wrap.auth-split {
	display: grid !important;
	grid-template-columns: 1fr;
	align-items: start !important;
	justify-content: stretch !important;
	max-width: 1080px;
	margin: 0 auto;
	width: 100%;
	padding: 96px 24px 48px !important;
	background: transparent !important;
	backdrop-filter: none !important;
}
body.auth-gate.auth-ab .auth-aside { display: none; }
body.auth-gate.auth-ab .auth-form-col {
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
}
body.auth-gate.auth-ab .auth-brand-panel,
body.auth-gate.auth-ab .auth-form-panel {
	padding: 0 !important;
	align-items: stretch !important;
	text-align: left !important;
	background: transparent !important;
}
body.auth-gate.auth-ab .brand-headline {
	text-align: left !important;
	font-size: clamp(1.75rem, 4vw, 2.1rem) !important;
	margin: 0 0 8px !important;
	color: #E8EEF8 !important;
}
body.auth-gate.auth-ab .brand-subtext {
	text-align: left !important;
	margin: 0 0 32px !important;
	max-width: none !important;
	color: #7A8494 !important;
}
body.auth-gate.auth-ab .google-btn-wrap { justify-content: flex-start !important; }
body.auth-gate.auth-ab .auth-divider span { background: transparent !important; }
body.auth-gate.auth-ab .field-icon { display: none !important; }
body.auth-gate.auth-ab .field { margin-bottom: 16px !important; }
body.auth-gate.auth-ab .field-label {
	position: static !important;
	left: auto !important;
	top: auto !important;
	display: block !important;
	margin: 0 0 8px !important;
	font-size: 12px !important;
	font-weight: 650 !important;
	letter-spacing: .04em;
	text-transform: uppercase;
	pointer-events: auto !important;
	color: #7A8494 !important;
}
body.auth-gate.auth-ab .field-input {
	height: 48px !important;
	padding: 12px 48px 12px 0 !important;
	border: 0 !important;
	border-bottom: 1px solid #2A2A2A !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #E8EEF8 !important;
}
body.auth-gate.auth-ab .field-input:focus {
	border-bottom-color: #4D7EFF !important;
	box-shadow: none !important;
	background: transparent !important;
}
body.auth-gate.auth-ab .btn-toggle-pass {
	top: auto !important;
	bottom: 10px !important;
}
body.auth-gate.auth-ab .btn-submit-primary {
	margin-top: 24px !important;
	height: 48px !important;
	border-radius: 999px !important;
	background: #4D7EFF !important;
	color: #0A0A0B !important; /* TASK-065: putih di #4D7EFF = 3.66:1 → teks gelap ≈ 5.9:1 (sama dengan hover) */
	font-weight: 650 !important;
	box-shadow: none !important;
}
body.auth-gate.auth-ab .btn-submit-primary:hover:not(:disabled) {
	background: #7AA0FF !important;
	color: #0A0A0B !important;
	transform: none;
}
body.auth-gate.auth-ab .btn-mode-switch { text-align: left !important; padding-left: 0 !important; }
body.auth-gate.auth-ab .plan-mock {
	width: min(100%, 320px);
	padding: 32px 24px;
	border-radius: 20px;
	background: linear-gradient(165deg, rgba(18,22,36,.96), #0A0A0A);
	border: 1px solid #2A2A2A;
	box-shadow: 0 28px 80px rgba(77,126,255,.16);
}
body.auth-gate.auth-ab .pm-kicker {
	display: inline-flex; padding: 4px 12px; border-radius: 999px;
	font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	color: #7AA0FF; background: rgba(77,126,255,.12);
}
body.auth-gate.auth-ab .pm-pct {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 40px; font-weight: 800; color: #E8EEF8; margin: 12px 0 16px; letter-spacing: -.04em;
}
body.auth-gate.auth-ab .pm-row {
	display: flex; justify-content: space-between; padding: 12px 0;
	border-top: 1px solid #2A2A2A; color: #7A8494; font-size: 14px;
}
body.auth-gate.auth-ab .pm-row b {
	font-family: "JetBrains Mono", ui-monospace, monospace; color: #C8D8FF;
}
body.auth-gate.auth-ab .pm-note { margin: 16px 0 0; font-size: 12px; color: #7A8494; }

/* AI-ANCHOR: CSS_V99101_AUTH_LANG_PICKER */
.navbar .lang-pick { position: relative; z-index: 40; }
.navbar .lang-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 12px; border-radius: 10px;
	border: 1px solid #2A2A2A; background: #0A0A0A;
	color: #C8D8FF; font-weight: 700; font-size: 12px;
	font-family: "Space Grotesk", sans-serif; cursor: pointer;
}
.navbar .lang-btn:hover { border-color: #4D7EFF; }
.navbar .lang-menu {
	position: absolute; right: 0; top: calc(100% + 8px);
	min-width: 190px; max-height: 280px; overflow: auto;
	background: #0D0D0D; border: 1px solid #2A2A2A; border-radius: 14px;
	padding: 8px; display: none; z-index: 50;
	box-shadow: 0 18px 40px rgba(0,0,0,.7);
}
.navbar .lang-menu.open { display: block; }
.navbar .lang-opt {
	display: block; width: 100%; text-align: left;
	padding: 12px 12px; border: 0; border-radius: 10px;
	background: transparent; color: #E8EEF8; font-size: 14px;
	font-family: "Space Grotesk", sans-serif; cursor: pointer;
}
.navbar .lang-opt:hover, .navbar .lang-opt.on { background: rgba(77,126,255,.14); color: #7AA0FF; }
@media (min-width: 900px) {
	body.auth-gate.auth-ab .auth-wrap.auth-split {
		grid-template-columns: 1fr 1fr;
		gap: 48px;
		align-items: center !important;
		min-height: calc(100dvh - 64px);
		padding-top: 64px !important;
	}
	body.auth-gate.auth-ab .auth-aside {
		display: flex !important;
		align-items: center;
		justify-content: center;
	}
	body.auth-gate.auth-ab .auth-form-col {
		margin: 0;
		max-width: 420px;
	}
}


/* AI-ANCHOR: CSS_V99112_AUTH_HIDDEN (TASK-029) — atribut [hidden] selalu menang (baris "Remember me / Forgot password"
   sempat tetap tampil di mode daftar karena .login-options-row { display: flex }) */
[hidden] { display: none !important; }
/* kolom grid tidak boleh dilebarkan oleh isi (tombol Google 360 px sempat mendorong form keluar layar 375/320) */
body.auth-gate.auth-ab .auth-wrap.auth-split { grid-template-columns: minmax(0, 1fr); }
body.auth-gate.auth-ab .auth-form-col { min-width: 0; max-width: min(100%, 400px); }
body.auth-gate.auth-ab .google-btn-wrap { min-width: 0; max-width: 100%; }
body.auth-gate.auth-ab .google-btn-wrap { overflow: hidden; }
body.auth-gate #tnc-row > span { flex: 1 1 auto; min-width: 0; }
@media (min-width: 900px) {
	body.auth-gate.auth-ab .auth-wrap.auth-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	body.auth-gate.auth-ab .auth-form-col { max-width: min(100%, 420px); }
}

/* ============================================================
   AI-ANCHOR: CSS_AUTH_PRECISION — TASK-069 M6: halaman masuk/daftar ke skala §8.17 (target sentuh ≥ 44 px, font 12/14, spasi 4/8)
   ============================================================ */
.navbar .brand { gap: 8px; min-height: 44px; }
body.auth-gate .auth-nav-home { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.link-forgot { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.btn-mode-switch { min-height: 44px; margin-top: 16px; padding: 8px 24px; font-size: 14px; line-height: 1.45; }
body.auth-gate .btn-submit-primary { padding: 0 24px; }
body.auth-gate .btn-toggle-pass { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; right: 4px; }
body.auth-gate .lang-btn { min-height: 44px; }
