/* EP Membership — Frontend Styles */

/* Auth forms use existing .auth-form class from S2L theme */
/* These styles supplement the theme defaults */

.auth-error {
	background: #fee;
	border: 1px solid #e55;
	color: #c33;
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
}
.auth-error a { color: #c33; text-decoration: underline; }

.auth-success {
	background: #efe;
	border: 1px solid #5b5;
	color: #363;
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
}

.auth-message {
	text-align: center;
	padding: 24px;
}

.auth-links {
	text-align: center;
	font-size: 14px;
	margin-top: 12px;
}

.checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
	font-size: 14px;
}
.checkbox-label input[type="checkbox"] {
	margin-top: 3px;
}

/* Member Profile */
.member-profile { max-width: 640px; }

.profile-section {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid #eee;
}
.profile-section:last-child { border-bottom: none; }
.profile-section h3 { margin-bottom: 16px; }

/* Enrolled courses */
.enrolled-course {
	margin-bottom: 16px;
	padding: 12px 0;
}
.enrolled-course .course-info { margin-bottom: 8px; }
.enrolled-course .course-info a { text-decoration: none; }
.enrolled-course .course-info a:hover { text-decoration: underline; }

.course-status.completed {
	display: inline-block;
	background: #5b5;
	color: #fff;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 10px;
	margin-left: 8px;
	vertical-align: middle;
}

.progress-bar-wrap {
	background: #eee;
	border-radius: 4px;
	height: 8px;
	overflow: hidden;
	margin-bottom: 4px;
}
.progress-bar {
	background: #4a9;
	height: 100%;
	border-radius: 4px;
	transition: width 0.3s ease;
}
.progress-text {
	font-size: 12px;
	color: #888;
}

/* Member Dashboard */
.member-dashboard { padding: 16px 0; }
.dashboard-welcome { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.dashboard-courses { margin-bottom: 16px; }
.dashboard-course { margin-bottom: 12px; }
.dashboard-course a { text-decoration: none; }
.dashboard-links a { margin-right: 12px; }

/* Login Gate */
.login-gate {
	text-align: center;
	padding: 24px;
	background: #f8f8f8;
	border-radius: 8px;
}

/* Level Gate (upgrade prompt) + member level badge */
.level-gate strong { white-space: nowrap; }
.member-level-badge {
	display: inline-block;
	font-size: 0.9em;
	padding: 2px 10px;
	background: #f0f0f0;
	border-radius: 999px;
	margin-bottom: 12px;
}

/* Suite brand colour — scoped to the auth forms only, so other theme
   .btn-primary buttons are untouched. var() with no fallback is a no-op
   until a brand is set, so the buttons keep inheriting the theme. */
.auth-form .btn.btn-primary{background:var(--ep-brand);color:var(--ep-brand-ink);border-color:var(--ep-brand)}
.auth-form .btn.btn-primary:hover{background:var(--ep-brand-hover);border-color:var(--ep-brand-hover)}

/* Logout control (0.6.4). Logout is a POST form now, not a link, so the button
   has to be dressed back down to look like the anchor it replaced — including
   inline, since it sits mid-sentence in "Profile · Log out". */
.ep-logout-form { display: inline; margin: 0; padding: 0; }
.ep-logout-form button.logout-link {
	display: inline;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-decoration: underline;
}
.ep-logout-form button.logout-link:hover { opacity: 0.75; }
.ep-logout-form button.logout-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Continue with Google (0.9.0). Follows Google's own button guidance: white,
   a light grey border, the four-colour mark and dark text, in any theme. */
.ep-social-login { margin-top: 1.25em; }
.ep-social-or { display: flex; align-items: center; gap: 0.75em; margin: 0 0 1em; font-size: 0.9em; opacity: 0.7; }
.ep-social-or::before, .ep-social-or::after { content: ""; flex: 1; border-top: 1px solid currentColor; opacity: 0.3; }
.ep-social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	width: 100%;
	box-sizing: border-box;
	padding: 0.65em 1em;
	background: #fff;
	color: #1f1f1f;
	border: 1px solid #747775;
	border-radius: 4px;
	font: inherit;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
}
.ep-social-btn:hover { background: #f8f9fa; color: #1f1f1f; text-decoration: none; }
/* Themes underline links inside content; the button is not a text link. */
.ep-social-login a.ep-social-btn, .ep-social-login a.ep-social-btn:hover, .ep-social-login a.ep-social-btn span { text-decoration: none; }
.ep-social-btn:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.ep-social-icon { flex: none; }
.ep-social-consent-msg { margin: 0.6em 0 0; font-size: 0.9em; color: #b3261e; }
