/**
 * E-Potion Auth Page — Login / Register
 *
 * Loaded only on /logare/ via inc/auth-page.php enqueue.
 * Self-contained — no third-party plugin styles.
 */

.ep-auth-page {
	min-height: calc(100vh - 200px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 16px;
	background: #f6f7f9;
}

.ep-auth-shell {
	width: 100%;
	max-width: 440px;
}

.ep-auth-noscript {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	padding: 14px 18px;
	border-radius: 10px;
	font-size: 13px;
	margin-bottom: 16px;
	line-height: 1.5;
}

.ep-auth-card {
	background: #fff;
	border: 1px solid #e9ebee;
	border-radius: 16px;
	padding: 36px 32px 28px;
}

/* Brand */
.ep-auth-brand {
	text-align: center;
	margin-bottom: 22px;
}
.ep-auth-logo {
	font-size: 22px;
	font-weight: 600;
	color: #d4af37;
	letter-spacing: 0.02em;
}

/* Tabs */
.ep-auth-tabs {
	display: flex;
	background: #f1f3f6;
	border-radius: 10px;
	padding: 4px;
	margin-bottom: 26px;
}
.ep-auth-tab {
	flex: 1;
	text-align: center;
	padding: 9px 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 13.5px;
	color: #6b7280;
	cursor: pointer;
	border-radius: 7px;
	font-weight: 500;
	transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.ep-auth-tab:hover { color: #0e1116; }
.ep-auth-tab.is-active {
	background: #fff;
	color: #0e1116;
	box-shadow: 0 1px 2px rgba(14, 17, 22, 0.06);
}

/* View toggle */
.ep-auth-view { display: none; }
.ep-auth-view.is-active { display: block; }

/* Heading */
.ep-auth-heading { margin-bottom: 18px; }
.ep-auth-heading h1 {
	font-size: 22px;
	font-weight: 600;
	color: #0e1116;
	margin: 0 0 4px;
	line-height: 1.3;
}
.ep-auth-heading p {
	font-size: 13.5px;
	color: #6b7280;
	margin: 0;
}

/* Google button — native, custom OAuth (no plugin) */
.ep-auth-google-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 46px;
	background: #fff;
	border: 1px solid #e0e3e7;
	border-radius: 10px;
	font-size: 14px;
	color: #0e1116;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.15s, background 0.15s;
}
.ep-auth-google-btn:hover {
	border-color: #0e1116;
	background: #fafbfc;
}

/* Small text below the Google button — Privacy + 18+ acknowledgment */
.ep-auth-google-disclaimer {
	font-size: 11px;
	color: #9ca3af;
	line-height: 1.4;
	margin: 8px 0 0;
	text-align: center;
}
.ep-auth-google-disclaimer a {
	color: #6b7280;
	text-decoration: underline;
}

/* Divider */
.ep-auth-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 18px 0;
}
.ep-auth-divider::before,
.ep-auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e9ebee;
}
.ep-auth-divider span {
	font-size: 11px;
	color: #9ca3af;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* Form */
.ep-auth-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.ep-auth-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.ep-auth-field label {
	font-size: 12px;
	color: #4b5563;
	font-weight: 500;
}
.ep-auth-field input {
	height: 46px;
	border: 1px solid #e0e3e7;
	border-radius: 10px;
	padding: 0 14px;
	font-size: 14px;
	color: #0e1116;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
	width: 100%;
	font-family: inherit;
}
.ep-auth-field input:focus {
	outline: 0;
	border-color: #0e1116;
	box-shadow: 0 0 0 3px rgba(14, 17, 22, 0.06);
}
.ep-auth-field input.is-error {
	border-color: #ee2832;
}

/* Password show/hide */
.ep-auth-input-wrap { position: relative; }
.ep-auth-input-wrap input { padding-right: 44px; }
.ep-auth-eye {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	color: #6b7280;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	padding: 0;
}
.ep-auth-eye:hover {
	background: #f1f3f6;
	color: #0e1116;
}

/* Password strength meter */
.ep-auth-pw-meter {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
}
.ep-auth-pw-bars {
	flex: 1;
	height: 4px;
	background: #f0f2f5;
	border-radius: 2px;
	display: flex;
	gap: 3px;
	overflow: hidden;
}
.ep-auth-pw-bars span {
	flex: 1;
	background: #f0f2f5;
	transition: background 0.2s;
}
.ep-auth-pw-label {
	font-size: 11px;
	font-weight: 500;
	min-width: 70px;
	text-align: right;
}

/* Remember-me + forgot row */
.ep-auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 4px;
}

/* Custom checkboxes */
.ep-auth-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 12.5px;
	color: #4b5563;
	line-height: 1.45;
	user-select: none;
}
.ep-auth-check input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	margin: 0;
	width: 0;
	height: 0;
}
.ep-auth-check-box {
	width: 18px;
	height: 18px;
	border: 1px solid #e0e3e7;
	border-radius: 4px;
	background: #fff;
	flex-shrink: 0;
	margin-top: 1px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, border-color 0.15s;
	position: relative;
}
.ep-auth-check input:checked + .ep-auth-check-box {
	background: #0e1116;
	border-color: #0e1116;
}
.ep-auth-check input:checked + .ep-auth-check-box::after {
	content: "";
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	margin-top: -2px;
}
.ep-auth-check input:focus-visible + .ep-auth-check-box {
	box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}
.ep-auth-check--required { color: #0e1116; }
.ep-auth-check a { color: #0e1116; text-decoration: underline; }
.ep-auth-optional { color: #9ca3af; }

/* Forgot password */
.ep-auth-forgot {
	font-size: 12.5px;
	color: #d4af37;
	text-decoration: none;
}
.ep-auth-forgot:hover { text-decoration: underline; }

/* Adult-only notice (register view) */
.ep-auth-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	background: #fff8e6;
	border: 1px solid #f5d68b;
	border-left: 3px solid #d4af37;
	border-radius: 8px;
	margin: 16px 0 4px;
}
.ep-auth-notice svg {
	flex-shrink: 0;
	color: #d4af37;
	margin-top: 1px;
}
.ep-auth-notice p {
	font-size: 12px;
	line-height: 1.5;
	color: #4b5563;
	margin: 0;
}

/* Consent block (register) */
.ep-auth-consents {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 4px;
}

/* Turnstile wrapper — invisible mode renders nothing visible */
.ep-turnstile { display: none; }
.ep-turnstile.is-visible {
	display: flex;
	justify-content: center;
	margin: 4px 0;
}

/* Submit */
.ep-auth-submit {
	height: 48px;
	background: #0e1116;
	color: #fff;
	border: 0;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	margin-top: 6px;
	transition: background 0.15s, opacity 0.15s;
	font-family: inherit;
}
.ep-auth-submit:hover { background: #1f2229; }
.ep-auth-submit:active { transform: scale(0.99); }
.ep-auth-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Error box */
.ep-auth-error {
	padding: 10px 14px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	color: #b91c1c;
	font-size: 12.5px;
	line-height: 1.4;
}

/* Switch link */
.ep-auth-switch {
	text-align: center;
	margin: 14px 0 0;
	font-size: 12.5px;
	color: #6b7280;
}
.ep-auth-switch a {
	color: #d4af37;
	text-decoration: none;
	font-weight: 500;
}
.ep-auth-switch a:hover { text-decoration: underline; }

/* Footer */
.ep-auth-footer {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid #f0f2f5;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 11px;
	color: #9ca3af;
}

/* Mobile */
@media (max-width: 480px) {
	.ep-auth-page { padding: 24px 12px; }
	.ep-auth-card { padding: 28px 22px 24px; }
	.ep-auth-heading h1 { font-size: 20px; }
}
