/* GyanPoints Firebase Auth — modern scoped styles (gpfa- prefix, no theme conflicts) */

.gpfa-admin-warning {
	max-width: 900px;
	margin: 0 auto 14px;
	padding: 12px 16px;
	background: #fff8e1;
	border: 1px solid #f5d78e;
	border-radius: 10px;
	font-size: 13px;
	color: #6b4e00;
	line-height: 1.5;
}
.gpfa-admin-warning a { color: #a4262c; font-weight: 700; }

.gpfa-shell, .gpfa-shell * { box-sizing: border-box; }

.gpfa-shell {
	--gpfa-green: #1e7e34;
	--gpfa-green-light: #2ea24a;
	--gpfa-green-dark: #12471e;
	--gpfa-border: #e7ece9;
	--gpfa-text: #16241a;
	--gpfa-muted: #6b7a70;
	--gpfa-bg: #f4faf6;

	display: flex;
	max-width: 900px;
	margin: 32px auto;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(18, 71, 30, 0.14);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--gpfa-text);
	background: #fff;
}

.gpfa-shell-solo { max-width: 420px; justify-content: center; }

/* ---------- Left brand panel ---------- */
.gpfa-brand-panel {
	flex: 0 0 42%;
	background: linear-gradient(160deg, var(--gpfa-green) 0%, var(--gpfa-green-dark) 100%);
	color: #fff;
	padding: 40px 32px;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
}
.gpfa-brand-panel::before {
	content: "";
	position: absolute;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: rgba(255,255,255,0.08);
	top: -80px;
	right: -80px;
}
.gpfa-brand-panel::after {
	content: "";
	position: absolute;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: rgba(255,255,255,0.06);
	bottom: -60px;
	left: -50px;
}
.gpfa-brand-inner { position: relative; z-index: 1; }
.gpfa-brand-logo {
	display: inline-block;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.5px;
	background: rgba(255,255,255,0.16);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 22px;
}
.gpfa-brand-panel h2 { font-size: 24px; line-height: 1.35; margin: 0 0 12px; }
.gpfa-brand-panel p { font-size: 14px; line-height: 1.6; opacity: 0.92; margin: 0 0 22px; }
.gpfa-brand-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.gpfa-brand-points li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.gpfa-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: 0 0 auto; opacity: 0.85; }

/* ---------- Right form panel ---------- */
.gpfa-form-panel { flex: 1 1 58%; padding: 40px 36px; background: #fff; }

.gpfa-tabs {
	display: flex;
	gap: 4px;
	background: var(--gpfa-bg);
	padding: 5px;
	border-radius: 999px;
	margin-bottom: 24px;
}
.gpfa-tab {
	flex: 1 1 auto;
	padding: 9px 8px;
	background: none;
	border: none;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--gpfa-muted);
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
	white-space: nowrap;
}
.gpfa-tab.active { background: var(--gpfa-green); color: #fff; box-shadow: 0 4px 10px rgba(30,126,52,0.28); }

.gpfa-panel { display: none; flex-direction: column; gap: 18px; animation: gpfaFadeIn .25s ease; }
.gpfa-panel.active { display: flex; }
@keyframes gpfaFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.gpfa-panel-title { margin: 0; font-size: 18px; font-weight: 700; }
.gpfa-panel-sub { margin: -10px 0 0; font-size: 13px; }

/* Floating-label fields */
.gpfa-field { position: relative; }
.gpfa-field input {
	width: 100%;
	padding: 16px 14px 6px;
	border: 1.5px solid var(--gpfa-border);
	border-radius: 10px;
	font-size: 15px;
	background: #fbfdfc;
	transition: border-color .15s ease, background .15s ease;
}
.gpfa-field input:focus {
	outline: none;
	border-color: var(--gpfa-green);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(30,126,52,0.12);
}
.gpfa-field label {
	position: absolute;
	left: 14px;
	top: 13px;
	font-size: 15px;
	color: var(--gpfa-muted);
	pointer-events: none;
	transition: top .15s ease, font-size .15s ease, color .15s ease;
	background: transparent;
}
.gpfa-field input:focus + label,
.gpfa-field input:not(:placeholder-shown) + label {
	top: 5px;
	font-size: 11px;
	font-weight: 600;
	color: var(--gpfa-green);
}
.gpfa-field-pass input { padding-right: 42px; }
.gpfa-pass-toggle {
	position: absolute;
	right: 10px;
	top: 12px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 15px;
	opacity: 0.55;
	padding: 4px;
}
.gpfa-pass-toggle.gpfa-pass-visible { opacity: 0.95; }

.gpfa-recaptcha { margin: 2px 0; }
.gpfa-otp-block { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; border-top: 1px dashed var(--gpfa-border); }

.gpfa-btn {
	background: var(--gpfa-green);
	color: #fff;
	border: none;
	padding: 13px 16px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	transition: background .15s ease, transform .1s ease;
}
.gpfa-btn:hover { background: var(--gpfa-green-dark); }
.gpfa-btn:active { transform: scale(0.98); }
.gpfa-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.gpfa-btn-block { width: 100%; }

.gpfa-btn-outline {
	background: transparent;
	color: var(--gpfa-green);
	border: 2px solid var(--gpfa-green);
	padding: 11px 16px;
}
.gpfa-btn-outline:hover { background: rgba(30,126,52,0.08); }

.gpfa-alert {
	padding: 11px 14px;
	border-radius: 10px;
	font-size: 13px;
	margin-bottom: 18px;
	line-height: 1.45;
}
.gpfa-alert.gpfa-error { background: #fdecea; color: #a4262c; border: 1px solid #f5c6c3; }
.gpfa-alert.gpfa-success { background: #e9f7ef; color: #1e7e34; border: 1px solid #b8e3c4; }

.gpfa-muted { color: var(--gpfa-muted); font-size: 13px; margin: 2px 0 0; }

/* Already-logged-in / dashboard reuse .gpfa-card inside .gpfa-shell */
.gpfa-card {
	padding: 32px;
	text-align: center;
	width: 100%;
}
.gpfa-check-badge {
	width: 52px; height: 52px; line-height: 52px;
	border-radius: 50%;
	background: var(--gpfa-green);
	color: #fff;
	font-size: 22px;
	margin: 0 auto 16px;
}
.gpfa-already-in h3 { margin: 0 0 6px; }
.gpfa-already-in .gpfa-btn { margin-top: 16px; width: 100%; }

/* ---------- Dashboard (kept as a standalone box, not split-panel) ---------- */
.gpfa-box {
	max-width: 420px;
	margin: 24px auto;
	padding: 26px;
	background: #fff;
	border: 1px solid var(--gpfa-border);
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(18,71,30,0.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--gpfa-text);
}
.gpfa-box * { box-sizing: border-box; }
.gpfa-dashboard .gpfa-profile-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.gpfa-dashboard .gpfa-profile-header img { border-radius: 50%; }
.gpfa-dashboard h3 { margin: 0; font-size: 17px; }
.gpfa-profile-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 13px; }
.gpfa-profile-table th, .gpfa-profile-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--gpfa-border); }
.gpfa-profile-table th { color: var(--gpfa-muted); font-weight: 600; width: 45%; }

.gpfa-locked { text-align: center; }
.gpfa-locked p { margin-bottom: 14px; line-height: 1.5; }
.gpfa-locked .gpfa-btn { display: inline-block; width: auto; padding: 12px 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
	.gpfa-shell { flex-direction: column; max-width: 440px; border-radius: 16px; }
	.gpfa-brand-panel { padding: 26px 24px; }
	.gpfa-brand-panel h2 { font-size: 19px; }
	.gpfa-brand-points { display: none; }
	.gpfa-form-panel { padding: 26px 22px; }
}
@media (max-width: 480px) {
	.gpfa-shell { margin: 14px; }
	.gpfa-tab { font-size: 11px; padding: 8px 5px; }
	.gpfa-box { margin: 14px; padding: 20px; }
}
