/**
 * Reva My Account — Stylesheet
 *
 * Scoped entirely under .reva-my-account using BEM naming
 * (block__element--modifier) so it never leaks into or clashes
 * with Hello Elementor / Elementor widget styles, or the other two
 * Reva modules. Design tokens (colors, radii, shadows) intentionally
 * match assets/css/events-browse.css so the page feels part of the
 * same site rather than a bolted-on plugin screen.
 *
 * Package: Reva_Social / My_Account
 */

.reva-my-account {
	--reva-coral: #39B7CE;
	--reva-coral-dark: #2A93A6;
	--reva-coral-soft: #EAF8FB;
	--reva-ink: #202D2C;
	--reva-ink-soft: #53615F;
	--reva-muted: #7D8885;
	--reva-line: #E3E5E1;
	--reva-error: #C4453B;
	--reva-error-soft: #FBEAE8;
	--reva-success: #2A8F5E;
	--reva-success-soft: #E7F6EE;
	max-width: 440px;
	margin: 0 auto;
	padding: 40px 15px 60px;
	box-sizing: border-box;
}

.reva-my-account *,
.reva-my-account *::before,
.reva-my-account *::after {
	box-sizing: inherit;
}

/* -----------------------------
   Banners (verification result, etc.)
----------------------------- */
.reva-my-account__banner {
	margin-bottom: 20px;
	padding: 14px 16px;
	border-radius: 10px;
	font-size: 13.5px;
	line-height: 1.5;
}

.reva-my-account__banner--success {
	background: var(--reva-success-soft);
	color: var(--reva-success);
	border: 1px solid rgba(42, 143, 94, 0.25);
}

.reva-my-account__banner--error {
	background: var(--reva-error-soft);
	color: var(--reva-error);
	border: 1px solid rgba(196, 69, 59, 0.25);
}

/* -----------------------------
   Card
----------------------------- */
.reva-my-account__card {
	background: #fff;
	border: 1px solid #E7E9E8;
	border-radius: 16px;
	padding: 28px 28px 30px;
	box-shadow: 0 20px 36px rgba(29, 48, 46, 0.06);
}

/* -----------------------------
   Tabs
----------------------------- */
.reva-my-account__tabs {
	display: flex;
	gap: 4px;
	background: #F7F9F8;
	border: 1px solid var(--reva-line);
	border-radius: 10px;
	padding: 4px;
	margin-bottom: 24px;
}

.reva-my-account__tab {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 10px 12px;
	border-radius: 7px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--reva-ink-soft);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.reva-my-account__tab.is-active {
	background: #fff;
	color: var(--reva-coral-dark);
	box-shadow: 0 1px 4px rgba(29, 48, 46, 0.1);
}

/* -----------------------------
   Panels / forms
----------------------------- */
.reva-my-account__panel {
	display: none;
}

.reva-my-account__panel.is-active {
	display: block;
}

.reva-my-account__field {
	margin-bottom: 16px;
}

.reva-my-account__field label {
	display: block;
	margin-bottom: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--reva-ink);
}

.reva-my-account__field input[type="text"],
.reva-my-account__field input[type="email"],
.reva-my-account__field input[type="password"] {
	width: 100%;
	height: 46px;
	border: 1px solid var(--reva-line);
	background: #fff;
	border-radius: 9px;
	padding: 0 14px;
	font-family: inherit;
	font-size: 14px;
	color: var(--reva-ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reva-my-account__field input:focus {
	outline: none;
	border-color: var(--reva-coral);
	box-shadow: 0 0 0 3px rgba(57, 183, 206, 0.15);
}

.reva-my-account__hint {
	margin: 6px 2px 0;
	font-size: 11.5px;
	color: var(--reva-muted);
}

/* -----------------------------
   Forgot / reset password screens
----------------------------- */
.reva-my-account__form-title {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 600;
	color: var(--reva-ink);
	letter-spacing: -0.01em;
}

.reva-my-account__form-subtitle {
	margin: 0 0 22px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--reva-ink-soft);
}

.reva-my-account__back-link {
	display: block;
	text-align: center;
	margin-top: 18px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--reva-ink-soft);
	text-decoration: none;
}

.reva-my-account__back-link:hover,
.reva-my-account__back-link:focus-visible {
	color: var(--reva-coral-dark);
}

.reva-my-account__forgot-link {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--reva-coral-dark);
	text-decoration: none;
}

.reva-my-account__forgot-link:hover,
.reva-my-account__forgot-link:focus-visible {
	text-decoration: underline;
}

/* -----------------------------
   Honeypot (bot trap — invisible to real users)
----------------------------- */
.reva-my-account__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* -----------------------------
   Password field: show/hide toggle
----------------------------- */
.reva-my-account__password-wrap {
	position: relative;
}

.reva-my-account__password-wrap input {
	padding-right: 44px;
}

.reva-my-account__password-toggle {
	position: absolute;
	top: 0;
	right: 0;
	height: 46px;
	width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: var(--reva-muted);
	cursor: pointer;
	padding: 0;
}

/* Explicit, not relying solely on the browser's native [hidden]
   styling: some CSS resets / theme stylesheets (Hello Elementor
   included) redefine display rules broadly enough that the native
   hidden-attribute behavior can be silently overridden elsewhere in
   the cascade. This rule guarantees a hidden eye icon is actually
   hidden regardless of what else is loaded on the page. */
.reva-my-account__password-toggle svg[hidden] {
	display: none !important;
}

.reva-my-account__password-toggle:hover,
.reva-my-account__password-toggle:focus-visible {
	color: var(--reva-coral-dark);
}

/* -----------------------------
   Password strength meter
----------------------------- */
.reva-my-account__strength {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}

.reva-my-account__strength-bar {
	flex: 1;
	height: 5px;
	border-radius: 999px;
	background: var(--reva-line);
	overflow: hidden;
}

.reva-my-account__strength-bar span {
	display: block;
	height: 100%;
	width: 0%;
	border-radius: 999px;
	transition: width 0.25s ease, background-color 0.25s ease;
}

.reva-my-account__strength-bar span.is-weak {
	background: var(--reva-error);
}

.reva-my-account__strength-bar span.is-fair {
	background: #E0A430;
}

.reva-my-account__strength-bar span.is-good {
	background: #6BAE4F;
}

.reva-my-account__strength-bar span.is-strong {
	background: var(--reva-success);
}

.reva-my-account__strength-label {
	flex-shrink: 0;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--reva-ink-soft);
	min-width: 40px;
	text-align: right;
}

/* -----------------------------
   Password requirements checklist
----------------------------- */
.reva-my-account__requirements {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px 10px;
}

.reva-my-account__requirements li {
	position: relative;
	padding-left: 20px;
	font-size: 11.5px;
	color: var(--reva-muted);
	transition: color 0.2s ease;
}

.reva-my-account__requirements li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1.5px solid var(--reva-line);
	background: #fff;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.reva-my-account__requirements li.is-met {
	color: var(--reva-success);
}

.reva-my-account__requirements li.is-met::before {
	border-color: var(--reva-success);
	background: var(--reva-success);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M1 4 3.5 6.5 9 1' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
}

/* -----------------------------
   Submit button: processing / spinner
----------------------------- */
.reva-my-account__submit {
	gap: 8px;
}

.reva-my-account__spinner {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	animation: reva-spin 0.7s linear infinite;
	flex-shrink: 0;
}

.reva-my-account__submit--ghost .reva-my-account__spinner {
	border-color: rgba(42, 147, 166, 0.3);
	border-top-color: var(--reva-coral-dark);
}

@keyframes reva-spin {
	to {
		transform: rotate(360deg);
	}
}

.reva-my-account__field--inline {
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.reva-my-account__checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--reva-ink-soft);
	cursor: pointer;
}

.reva-my-account__checkbox input {
	width: 15px;
	height: 15px;
	accent-color: var(--reva-coral);
}

/* -----------------------------
   Buttons
----------------------------- */
.reva-my-account__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: 9px;
	background: var(--reva-coral);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.reva-my-account__submit:hover,
.reva-my-account__submit:focus-visible {
	background: var(--reva-coral-dark);
}

.reva-my-account__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.reva-my-account__submit--ghost {
	background: var(--reva-coral-soft);
	color: var(--reva-coral-dark);
}

.reva-my-account__submit--ghost:hover,
.reva-my-account__submit--ghost:focus-visible {
	background: var(--reva-coral);
	color: #fff;
}

.reva-my-account__submit--link {
	margin-bottom: 10px;
}

/* -----------------------------
   Inline form message (AJAX result)
----------------------------- */
.reva-my-account__form-message {
	margin-bottom: 16px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.45;
}

.reva-my-account__form-message.is-error {
	background: var(--reva-error-soft);
	color: var(--reva-error);
}

.reva-my-account__form-message.is-success {
	background: var(--reva-success-soft);
	color: var(--reva-success);
}

.reva-my-account__disclaimer {
	margin: 14px 2px 0;
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--reva-muted);
	text-align: center;
}

/* -----------------------------
   Resend verification
----------------------------- */
.reva-my-account__resend-toggle {
	display: block;
	margin: 16px auto 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--reva-coral-dark);
	cursor: pointer;
	text-decoration: underline;
}

.reva-my-account__resend-form {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px dashed var(--reva-line);
}

.reva-my-account__resend-hint {
	margin: 0 0 14px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--reva-ink-soft);
}

/* -----------------------------
   Dashboard (logged-in state)
----------------------------- */
.reva-my-account__card--dashboard {
	text-align: center;
}

.reva-my-account__avatar {
	display: flex;
	justify-content: center;
	margin-bottom: 14px;
}

.reva-my-account__avatar img {
	border-radius: 50%;
	display: block;
}

.reva-my-account__welcome {
	margin: 0 0 4px;
	font-size: 19px;
	font-weight: 600;
	color: var(--reva-ink);
	letter-spacing: -0.01em;
}

.reva-my-account__email {
	margin: 0 0 24px;
	font-size: 13px;
	color: var(--reva-muted);
}

.reva-my-account__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.reva-my-account__logout {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: var(--reva-ink-soft);
	text-decoration: none;
	padding: 8px;
}

.reva-my-account__logout:hover,
.reva-my-account__logout:focus-visible {
	color: var(--reva-error);
}

/* -----------------------------
   Responsive
----------------------------- */
@media (max-width: 480px) {
	.reva-my-account {
		padding: 24px 12px 40px;
	}

	.reva-my-account__card {
		padding: 22px 18px 24px;
		border-radius: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.reva-my-account__tab,
	.reva-my-account__field input,
	.reva-my-account__submit,
	.reva-my-account__strength-bar span {
		transition-duration: 0.01ms !important;
	}

	.reva-my-account__spinner {
		animation-duration: 1.5s;
	}
}
