/* Gandarians – Membership: full-screen branded auth screens (sign in / sign up / signed out) */

/* ---- Take over the whole viewport on auth pages ---- */
body.gfn-auth-page {
	margin: 0;
	min-height: 100vh;
	background: #4f46e5;
	background-image: linear-gradient(135deg, #6366f1 0%, #7c5cf6 45%, #8b5cf6 100%);
	background-attachment: fixed;
	position: relative;
	overflow-x: hidden;
}
body.gfn-auth-page::before,
body.gfn-auth-page::after {
	content: "";
	position: fixed;
	border-radius: 50%;
	filter: blur(60px);
	opacity: .55;
	pointer-events: none;
	z-index: 0;
}
body.gfn-auth-page::before {
	width: 55vw; height: 55vw; max-width: 620px; max-height: 620px;
	background: radial-gradient(circle at 30% 30%, #c4b5fd, rgba(196, 181, 253, 0));
	top: -18vw; left: -14vw;
}
body.gfn-auth-page::after {
	width: 50vw; height: 50vw; max-width: 560px; max-height: 560px;
	background: radial-gradient(circle at 70% 70%, #a5b4fc, rgba(165, 180, 252, 0));
	bottom: -16vw; right: -12vw;
}

/* Hide theme chrome (classic + block themes) */
body.gfn-auth-page .site-header,
body.gfn-auth-page header.wp-block-template-part,
body.gfn-auth-page header.site-header,
body.gfn-auth-page #masthead,
body.gfn-auth-page .site-footer,
body.gfn-auth-page footer.wp-block-template-part,
body.gfn-auth-page footer,
body.gfn-auth-page #colophon,
body.gfn-auth-page .wp-block-post-title,
body.gfn-auth-page .entry-title,
body.gfn-auth-page .page-title,
body.gfn-auth-page .breadcrumbs,
body.gfn-auth-page .wp-block-comments,
body.gfn-auth-page .comments-area,
body.gfn-auth-page #wpadminbar + .gfn-auth-hidden {
	display: none !important;
}
body.gfn-auth-page .wp-site-blocks,
body.gfn-auth-page #page,
body.gfn-auth-page .site,
body.gfn-auth-page .site-content,
body.gfn-auth-page #content,
body.gfn-auth-page main,
body.gfn-auth-page .entry-content,
body.gfn-auth-page .wp-block-post-content,
body.gfn-auth-page article {
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	border: 0 !important;
	box-shadow: none !important;
}
body.gfn-auth-page main.wp-block-group.has-global-padding { padding: 0 !important; }
body.gfn-auth-page .wp-site-blocks > * + * { margin-top: 0 !important; }

/* ---- Centered card ---- */
.gfn-wrap.gfn-auth {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	max-width: none;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 16px;
	animation: gfn-auth-in .45s ease-out both;
}
body.admin-bar .gfn-wrap.gfn-auth { min-height: calc(100vh - 32px); }
@keyframes gfn-auth-in {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}
.gfn-auth-card {
	width: 100%;
	max-width: 440px;
	background: #fff;
	border-radius: 16px;
	padding: 36px 32px 28px;
	box-shadow: 0 25px 60px rgba(30, 27, 75, .35), 0 4px 14px rgba(30, 27, 75, .15);
	text-align: center;
}
.gfn-auth-register .gfn-auth-card { max-width: 520px; }

/* Brand */
.gfn-auth-brand {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-decoration: none !important;
	margin-bottom: 4px;
}
.gfn-auth-logo {
	width: 64px; height: 64px;
	border-radius: 18px;
	background: var(--gfn-gradient);
	color: #fff;
	font-weight: 800;
	font-size: 34px;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 24px rgba(99, 102, 241, .45);
	letter-spacing: -1px;
}
.gfn-auth-title {
	font-weight: 800;
	font-size: 1.6rem;
	letter-spacing: -.02em;
	background: var(--gfn-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	line-height: 1.1;
}
.gfn-auth-tagline { color: var(--gfn-muted); font-size: .92rem; margin: 0 0 22px; }
.gfn-auth-heading { font-size: 1.3rem; margin: 0 0 4px; }
.gfn-auth-sub { color: var(--gfn-muted); font-size: .92rem; margin: 0 0 18px; }

/* Form */
.gfn-auth-form { text-align: left; }
.gfn-auth-form .gfn-field { margin-bottom: 14px; }
.gfn-auth-form .gfn-input { padding: 11px 13px; font-size: 1rem; }
.gfn-auth-forgot { font-size: .82rem; font-weight: 500; }
.gfn-auth .gfn-row-between .gfn-label { margin-bottom: 5px; }
.gfn-auth-pw { position: relative; }
.gfn-auth-pw .gfn-input { padding-right: 62px; }
.gfn-auth-pw-toggle {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	border: 0; background: transparent; color: var(--gfn-primary);
	font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
	padding: 6px 8px; border-radius: 6px;
}
.gfn-auth-pw-toggle:hover { background: var(--gfn-hover); }
.gfn-auth-remember { margin: 4px 0 16px; }
.gfn-auth-remember .gfn-checkbox { color: var(--gfn-text); font-size: .9rem; }
.gfn-auth .gfn-checkbox input { width: 17px; height: 17px; accent-color: var(--gfn-primary); margin: 0; flex-shrink: 0; }
.gfn-auth-agree .gfn-checkbox { align-items: flex-start; font-size: .85rem; line-height: 1.45; color: var(--gfn-muted); }
.gfn-auth-agree .gfn-checkbox input { margin-top: 2px; }
.gfn-auth-submit { padding: 12px 18px; font-size: 1rem; border-radius: 10px; margin-top: 4px; }
.gfn-auth-submit.is-loading { position: relative; color: transparent !important; }
.gfn-auth-submit.is-loading::after {
	content: ""; position: absolute; width: 20px; height: 20px; left: 50%; top: 50%; margin: -10px 0 0 -10px;
	border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%;
	animation: gfn-spin .8s linear infinite;
}
.gfn-auth-links { margin: 18px 0 0; font-size: .9rem; color: var(--gfn-muted); }
.gfn-auth-links a { font-weight: 600; }
.gfn-auth-actions { margin: 16px 0 0; }
.gfn-auth .gfn-notice { text-align: left; font-size: .9rem; }
.gfn-auth-grid { gap: 12px; }
.gfn-auth-pw-hint { margin: -6px 0 14px; }

/* Field errors */
.gfn-field.has-error .gfn-input { border-color: var(--gfn-danger); background: #fff5f5; box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
.gfn-field.has-error .gfn-label { color: #b91c1c; }
.gfn-auth-field-error { color: #b91c1c; font-size: .8rem; margin: 5px 0 0; }

/* Honeypot – visually hidden but present in the DOM */
.gfn-auth-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* Password strength */
.gfn-auth-strength { display: flex; align-items: center; gap: 10px; margin-top: 7px; font-size: .78rem; color: var(--gfn-muted); }
.gfn-auth-strength[hidden] { display: none; }
.gfn-auth-strength-bar { flex: 1; height: 5px; border-radius: 3px; background: var(--gfn-border); overflow: hidden; }
.gfn-auth-strength-bar i { display: block; height: 100%; width: 0; background: var(--gfn-danger); border-radius: 3px; transition: width .25s, background .25s; }
.gfn-auth-strength[data-score="2"] .gfn-auth-strength-bar i { background: var(--gfn-warning); }
.gfn-auth-strength[data-score="3"] .gfn-auth-strength-bar i { background: #84cc16; }
.gfn-auth-strength[data-score="4"] .gfn-auth-strength-bar i { background: var(--gfn-success); }
.gfn-auth-strength-label { white-space: nowrap; }

/* OTP inputs */
.gfn-otp-inputs { display: flex; justify-content: center; gap: 10px; margin: 6px 0 18px; }
.gfn-otp-input {
	width: 50px; height: 58px;
	text-align: center;
	font-size: 1.6rem; font-weight: 700;
	border: 2px solid var(--gfn-border);
	border-radius: 12px;
	background: #fafafa;
	color: var(--gfn-text);
	transition: border .15s, box-shadow .15s, background .15s, transform .1s;
	-moz-appearance: textfield;
	appearance: textfield;
	padding: 0;
	font-family: inherit;
}
.gfn-otp-input::-webkit-outer-spin-button, .gfn-otp-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gfn-otp-input:focus { outline: none; border-color: var(--gfn-primary); background: #fff; box-shadow: 0 0 0 4px rgba(99, 102, 241, .18); transform: translateY(-1px); }
.gfn-otp-inputs.is-complete .gfn-otp-input { border-color: var(--gfn-success); }
.gfn-otp-inputs.is-shake { animation: gfn-shake .4s; }
@keyframes gfn-shake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-6px); }
	40%, 80% { transform: translateX(6px); }
}
.gfn-auth-resend { margin-top: 12px; }
.gfn-auth-resend .gfn-btn { font-weight: 600; }

/* Signed-in / success states */
.gfn-auth-signedin .gfn-avatar { width: 64px; height: 64px; margin-bottom: 10px; box-shadow: 0 6px 16px rgba(99, 102, 241, .3); }
.gfn-auth-success .gfn-auth-check {
	width: 64px; height: 64px; margin: 4px auto 14px;
	border-radius: 50%;
	background: linear-gradient(135deg, #22c55e, #16a34a);
	color: #fff; font-size: 32px; font-weight: 800;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 24px rgba(34, 197, 94, .35);
	animation: gfn-pop .4s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes gfn-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- Mobile ---- */
@media (max-width: 520px) {
	.gfn-wrap.gfn-auth { padding: 16px 10px; align-items: flex-start; }
	.gfn-auth-card { padding: 28px 20px 22px; border-radius: 14px; }
	.gfn-auth-logo { width: 56px; height: 56px; font-size: 30px; border-radius: 16px; }
	.gfn-auth-title { font-size: 1.4rem; }
	.gfn-auth-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.gfn-otp-inputs { gap: 6px; }
	.gfn-otp-input { width: 44px; height: 52px; font-size: 1.4rem; }
}
@media (max-width: 360px) {
	.gfn-otp-input { width: 38px; height: 46px; font-size: 1.2rem; border-radius: 9px; }
}
@media (prefers-reduced-motion: reduce) {
	.gfn-wrap.gfn-auth, .gfn-auth-success .gfn-auth-check, .gfn-otp-inputs.is-shake { animation: none; }
}
