/* Shared guest auth fields (modal + standalone pages) */
.guest-auth-field { margin-bottom: 12px; text-align: left; }
.guest-auth-field label { display: block; font-weight: bold; margin-bottom: 4px; }
.guest-auth-field-label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 4px;
}
.guest-auth-field-label-row label { margin-bottom: 0; }
.guest-auth-field input[type="email"],
.guest-auth-field input[type="password"],
.guest-auth-field input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	padding: 8px;
	border-radius: 4px;
}

.guest-auth-password-wrap {
	position: relative;
	display: block;
	width: 100%;
}

.guest-auth-password-wrap input[type="password"],
.guest-auth-password-wrap input[type="text"] {
	padding-right: 40px;
}

.guest-auth-toggle-password {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: #888;
	border: 0;
	background: transparent;
	padding: 0;
	width: 28px;
	height: 28px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.guest-auth-eye-icon {
	width: 22px;
	height: 22px;
	display: block;
	fill: currentColor;
}

.guest-auth-eye-visible {
	display: none;
}

.guest-auth-toggle-password.is-visible .guest-auth-eye-hidden {
	display: none;
}

.guest-auth-toggle-password.is-visible .guest-auth-eye-visible {
	display: block;
}

.guest-auth-message { display: none; margin: 10px 0 0; line-height: 1.4; text-align: center; }
.guest-auth-message.is-visible { display: block; }
.guest-auth-message.error { color: #b42318; }
.guest-auth-message.success { color: #1a7f37; }

.guest-auth-form .btnStyle {
	box-sizing: border-box;
	max-width: 100%;
	width: 100%;
	text-shadow: none;
}

/* Standalone auth pages (reset, verify) */
#contentboxcontent .guest-auth-page {
	max-width: 420px;
	margin: 20px auto;
	padding: 16px;
	border: 1px solid #c5c5c5;
	border-radius: 6px;
	background: #fff;
	box-sizing: border-box;
}

#contentboxcontent .guest-auth-page h2 {
	margin: 0 0 12px;
	font-size: 1.1em;
	text-align: center;
}

#contentboxcontent .guest-auth-page .guest-auth-intro,
#contentboxcontent .guest-auth-page .guest-auth-copy {
	margin: 0 0 12px;
	padding: 0;
	text-align: center;
	line-height: 1.4;
}

#contentboxcontent .guest-auth-page .guest-auth-actions {
	margin: 12px 0 0;
	padding: 0;
	text-align: center;
}

#contentboxcontent .guest-auth-page .guest-auth-error-title { color: #b42318; }
#contentboxcontent .guest-auth-page .guest-auth-success-title { color: #1a7f37; }

/* Neutralize theme rules: #contentboxcontent div { padding: 20px; } etc. */
#contentboxcontent .guest-auth-page div:not(.guest-auth-field) {
	padding: 0;
}

#contentboxcontent .guest-auth-page p {
	margin: 0 0 12px;
	padding: 0;
}

#contentboxcontent .guest-auth-page .guest-auth-form {
	margin-top: 0;
}

#contentboxcontent .guest-auth-page a.btnStyle,
#contentboxcontent .guest-auth-page a.btnStyle:hover,
#contentboxcontent .guest-auth-page a.btnStyle:active,
#contentboxcontent .guest-auth-page a.btnStyle.blue,
#contentboxcontent .guest-auth-page a.btnStyle.blue:hover,
#contentboxcontent .guest-auth-page .btnStyle.inline {
	width: auto;
	display: inline-block;
	padding: 10px 18px;
	text-decoration: none;
	text-shadow: none !important;
	color: #fff !important;
}

#contentboxcontent .guest-auth-page .btnStyle,
#contentboxcontent .guest-auth-page button.btnStyle {
	text-shadow: none !important;
}

@media screen and (max-width: 767px) {
	#contentboxcontent .guest-auth-page {
		max-width: calc(100vw - 20px);
		margin: 12px auto;
		padding: 12px;
	}
}
