/*
 * EvolvingRPG Accounts 1.0.1
 * The active theme owns the real site header/footer. This stylesheet handles
 * the Account hero and the centered, sidebar-free account content.
 */

.erpg-account-page {
	background: #fff;
}

.erpg-account-main {
	width: 100%;
	margin: 0;
	padding: 0 24px 72px;
}

.erpg-account-hero {
	position: relative;
	width: min(1440px, 100%);
	min-height: clamp(245px, 22vw, 350px);
	margin: 24px auto 58px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 20px;
	background: #1c1848;
	background-image: var(--erpg-account-hero);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.erpg-account-hero__shade {
	position: absolute;
	inset: 0;
	background: rgba(20, 18, 54, 0.24);
}

.erpg-account-hero__inner {
	position: relative;
	z-index: 1;
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.erpg-account-hero h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(42px, 5vw, 64px);
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -0.04em;
	text-align: center;
	text-shadow: 0 3px 18px rgba(0, 0, 0, 0.34);
}

.erpg-account-content {
	width: min(620px, 100%);
	margin: 0 auto;
}

.erpg-account-content > .wp-block-shortcode,
.erpg-account-content > .wp-block-group,
.erpg-account-content > div {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.erpg-account-shell {
	width: min(620px, 100%);
	margin: 0 auto;
}

.erpg-account-card {
	padding: 32px;
	border: 1px solid #dedee8;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 14px 36px rgba(28, 24, 72, 0.08);
	color: #17172a;
}

.erpg-account-card--notice {
	text-align: center;
}

.erpg-account-card__heading {
	margin-bottom: 24px;
	text-align: center;
}

.erpg-account-card h2,
.erpg-account-card__heading h2 {
	margin: 0 0 8px;
	color: #1c1848;
	font-size: clamp(28px, 4vw, 36px);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.025em;
}

.erpg-account-card p {
	line-height: 1.6;
}

.erpg-account-card__heading p,
.erpg-help,
.erpg-admin-login {
	margin: 0;
	color: #68687a;
	font-size: 14px;
}

.erpg-account-form > p {
	margin: 0 0 20px;
}

.erpg-account-form label:not(.erpg-checkbox) {
	display: block;
	margin-bottom: 7px;
	color: #202034;
	font-size: 14px;
	font-weight: 700;
}

.erpg-account-form input[type="text"],
.erpg-account-form input[type="email"],
.erpg-account-form input[type="password"] {
	width: 100%;
	min-height: 48px;
	padding: 9px 12px;
	border: 1px solid #c9c9d8;
	border-radius: 7px;
	background: #fff;
	box-shadow: none;
	color: #17172a;
	font: inherit;
	font-size: 16px;
}

.erpg-account-form input[type="text"]:focus,
.erpg-account-form input[type="email"]:focus,
.erpg-account-form input[type="password"]:focus {
	border-color: #5948e8;
	outline: 3px solid rgba(89, 72, 232, 0.14);
	outline-offset: 0;
}

.erpg-form-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.erpg-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #343447;
	font-size: 14px;
	font-weight: 600;
}

.erpg-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 9px 18px;
	border: 1px solid transparent;
	border-radius: 6px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
}

.erpg-button--primary {
	border-color: #5948e8;
	background: #5948e8;
	color: #fff !important;
}

.erpg-button--primary:hover,
.erpg-button--primary:focus {
	border-color: #4636cf;
	background: #4636cf;
	color: #fff !important;
}

.erpg-button--secondary {
	border-color: #d2d2df;
	background: #fff;
	color: #29283c !important;
}

.erpg-button--secondary:hover,
.erpg-button--secondary:focus {
	border-color: #5948e8;
	color: #5948e8 !important;
}

.erpg-button--full {
	width: 100%;
}

.erpg-account-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
	font-size: 14px;
}

.erpg-account-links a,
.erpg-admin-login a {
	color: #5142d3;
}

.erpg-admin-login {
	margin-top: 20px;
	text-align: center;
	font-size: 12px;
}

.erpg-account-errors,
.erpg-account-success {
	width: min(620px, 100%);
	margin: 0 auto 18px;
	padding: 14px 18px;
	border-radius: 8px;
	background: #fff;
}

.erpg-account-errors {
	border: 1px solid #e9c9c9;
	border-left: 4px solid #c92a2a;
}

.erpg-account-success {
	border: 1px solid #cfe3d5;
	border-left: 4px solid #238636;
}

.erpg-account-errors p,
.erpg-account-success p {
	margin: 0;
}

.erpg-honeypot {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.erpg-account-details {
	margin: 0 0 22px;
}

.erpg-account-details > div {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 18px;
	padding: 12px 0;
	border-bottom: 1px solid #ececf2;
}

.erpg-account-details dt {
	font-weight: 700;
	color: #414154;
}

.erpg-account-details dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.erpg-profile-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.grecaptcha-badge {
	z-index: 9999 !important;
}

@media (max-width: 640px) {
	.erpg-account-main {
		padding-left: 16px;
		padding-right: 16px;
		padding-bottom: 48px;
	}

	.erpg-account-hero {
		min-height: 190px;
		margin-top: 16px;
		margin-bottom: 38px;
		border-radius: 14px;
	}

	.erpg-account-hero h1 {
		font-size: 38px;
	}

	.erpg-account-card {
		padding: 24px 20px;
	}

	.erpg-form-row {
		align-items: stretch;
		flex-direction: column;
	}

	.erpg-form-row .erpg-button {
		width: 100%;
	}

	.erpg-account-details > div {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.erpg-profile-actions {
		flex-direction: column;
	}

	.erpg-profile-actions .erpg-button {
		width: 100%;
	}
}

/*
 * FSE Gamer's footer template emits more than one top-level block. Because this
 * custom Account template assembles the page with a `.wp-site-blocks` shell,
 * WordPress can apply the site's root blockGap between those top-level blocks.
 * That margin exposes the white shell background as a horizontal stripe.
 *
 * All major Account-page sections already carry their own intentional spacing,
 * so disable ONLY the automatic root-level block margins on this custom shell.
 */
body.erpg-account-page .erpg-account-site-shell > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}
