/**
 * Event101 front authentication: layout scoped to .e101-auth and body.event101-auth-page.
 * Does not target organiser app shell (.event101-app-shell). Palette: slate #111827, accent #58e28a.
 */

.event101-auth-page .entry-header {
	margin-bottom: 0;
}

.event101-auth-page .entry-content {
	margin-top: 0;
}

body.event101-public-marketing.event101-auth-page .e101-auth {
	margin-top: 0;
}

body.event101-public-marketing .e101-auth__brand-mark {
	display: none;
}

.e101-auth {
	--e101-auth-bg: #f9fafb;
	--e101-auth-surface: #ffffff;
	--e101-auth-text: #111827;
	--e101-auth-muted: #6b7280;
	--e101-auth-border: #e5e7eb;
	--e101-auth-accent: #58e28a;
	--e101-auth-accent-hover: #4ccc7c;
	--e101-auth-accent-soft: rgba(88, 226, 138, 0.18);
	--e101-auth-radius: 14px;
	--e101-auth-radius-sm: 10px;
	--e101-auth-shadow: 0 1px 2px rgba(12, 17, 29, 0.04), 0 24px 48px -12px rgba(12, 17, 29, 0.12);
	box-sizing: border-box;
	min-height: 70vh;
	margin: 0 auto;
	padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.75rem) 3rem;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: var(--e101-auth-text);
	background: var(--e101-auth-bg);
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	max-width: 1040px;
	margin-left: auto;
	margin-right: auto;
}

/* Aside */
.e101-auth__aside {
	background: linear-gradient(155deg, #0f172a 0%, #111827 45%, #0a0f18 100%);
	color: #f9fafb;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	display: flex;
	align-items: center;
}

.e101-auth__aside-brand {
	margin: 0 0 1rem;
}

.e101-auth__aside-logo {
	display: block;
	height: auto;
	max-height: 44px;
	width: auto;
}

@media (min-width: 900px) {
	.e101-auth__aside {
		border-radius: 0;
	}
}

.e101-auth__aside-inner {
	max-width: 34rem;
}

.e101-auth__aside-kicker {
	margin: 0 0 0.5rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(232, 237, 245, 0.55);
}

.e101-auth__aside-title {
	margin: 0 0 0.85rem;
	font-size: clamp(1.35rem, 2.5vw, 1.65rem);
	font-weight: 650;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: rgba(255, 255, 255, 0.96);
}

.entry-content .e101-auth__aside h2.e101-auth__aside-title {
	color: rgba(255, 255, 255, 0.96);
}

/* Theme copy (e.g. Astra .entry-content) can force dark text; keep aside body copy readable on slate. */
.e101-auth__aside .e101-auth__aside-lede,
.e101-auth__aside .e101-auth__aside-list {
	color: rgba(255, 255, 255, 0.9);
}

.e101-auth__aside-lede {
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
}

.e101-auth__aside-list {
	margin: 0;
	padding: 0 0 0 1.15rem;
	font-size: 0.9rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
}

.e101-auth__aside-list li {
	margin-bottom: 0.65rem;
}

.e101-auth__aside-list li::marker {
	color: rgba(88, 226, 138, 0.95);
}

/* Main column */
.e101-auth__main {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2.25rem);
	background: var(--e101-auth-surface);
}

@media (min-width: 900px) {
	.e101-auth__main {
		padding: 2.25rem 2.5rem;
	}
}

.e101-auth__card {
	width: 100%;
	max-width: 400px;
}

@media (max-width: 899px) {
	.e101-auth__card {
		background: var(--e101-auth-surface);
		border: 1px solid var(--e101-auth-border);
		border-radius: var(--e101-auth-radius);
		padding: 1.65rem 1.35rem 1.5rem;
		box-shadow: 0 1px 2px rgba(12, 17, 29, 0.04);
	}
}

.e101-auth__brand-mark {
	margin: 0 0 0.65rem;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 9px;
	background: var(--e101-auth-accent-soft);
	color: var(--e101-auth-accent);
	font-weight: 800;
	font-size: 0.7rem;
	letter-spacing: -0.03em;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
}

.e101-auth__head {
	margin-bottom: 1.35rem;
}

.e101-auth__title {
	margin: 0 0 0.45rem;
	font-size: 1.5rem;
	font-weight: 650;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.e101-auth__lead {
	margin: 0;
	color: var(--e101-auth-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.e101-auth__intent {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.65rem 0.85rem;
	margin-bottom: 1.1rem;
	border-radius: var(--e101-auth-radius-sm);
	background: #f8fafc;
	border: 1px solid var(--e101-auth-border);
	font-size: 0.85rem;
	line-height: 1.45;
}

.e101-auth__intent-label {
	font-weight: 600;
	color: var(--e101-auth-text);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.e101-auth__intent-text {
	color: var(--e101-auth-muted);
}

.e101-auth__alert {
	padding: 0.7rem 0.9rem;
	border-radius: var(--e101-auth-radius-sm);
	margin-bottom: 1rem;
	font-size: 0.9rem;
	line-height: 1.45;
}

.e101-auth__alert--error {
	background: #fef7f7;
	border: 1px solid #f7d4d4;
	color: #8b1e1e;
}

.e101-auth__alert--success {
	background: #f0fdf6;
	border: 1px solid #b8e9cc;
	color: #0d5732;
}

.e101-auth__alert--neutral {
	background: #f8fafc;
	border: 1px solid var(--e101-auth-border);
	color: var(--e101-auth-muted);
}

.e101-auth__field {
	margin-bottom: 1.05rem;
}

.e101-auth__label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4rem;
	font-size: 0.82rem;
	color: var(--e101-auth-text);
}

.e101-auth__hint {
	margin: 0.35rem 0 0;
	font-size: 0.78rem;
	line-height: 1.4;
	color: var(--e101-auth-muted);
}

.e101-auth__input {
	box-sizing: border-box;
	width: 100%;
	padding: 0.62rem 0.85rem;
	border: 1px solid var(--e101-auth-border);
	border-radius: var(--e101-auth-radius-sm);
	font-size: 1rem;
	background: #fff;
	color: var(--e101-auth-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.e101-auth__input:hover {
	border-color: #c5ccd8;
}

.e101-auth__input:focus {
	outline: none;
	border-color: var(--e101-auth-accent);
	box-shadow: 0 0 0 3px rgba(88, 226, 138, 0.28);
}

.e101-auth__input:focus-visible {
	outline: none;
	border-color: var(--e101-auth-accent);
	box-shadow: 0 0 0 3px rgba(88, 226, 138, 0.35);
}

.e101-auth__pass-wrap {
	display: flex;
	gap: 0.4rem;
	align-items: stretch;
}

.e101-auth__pass-wrap .e101-auth__input {
	flex: 1;
	min-width: 0;
}

.e101-auth__toggle {
	flex-shrink: 0;
	padding: 0 0.85rem;
	border: 1px solid var(--e101-auth-border);
	border-radius: var(--e101-auth-radius-sm);
	background: #f8fafc;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	color: var(--e101-auth-muted);
	transition: background 0.15s ease, color 0.15s ease;
}

.e101-auth__toggle:hover {
	background: #f1f5f9;
	color: var(--e101-auth-text);
}

.e101-auth__toggle:focus-visible {
	outline: 2px solid var(--e101-auth-accent);
	outline-offset: 2px;
}

.e101-auth__row--inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 1.15rem;
	font-size: 0.88rem;
}

.e101-auth__check {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	cursor: pointer;
	color: var(--e101-auth-muted);
}

.e101-auth__link {
	color: var(--e101-auth-accent);
	text-decoration: none;
	font-weight: 600;
}

.e101-auth__link:hover {
	text-decoration: underline;
}

.e101-auth__link--emphasis {
	font-weight: 650;
}

.e101-auth__link--subtle {
	font-weight: 500;
	font-size: 0.88rem;
	color: var(--e101-auth-muted);
	text-align: center;
}

.e101-auth__link--subtle:hover {
	color: var(--e101-auth-text);
}

.e101-auth__submit {
	display: inline-block;
	box-sizing: border-box;
	width: 100%;
	padding: 0.72rem 1rem;
	border: 1px solid rgba(17, 24, 39, 0.08);
	border-radius: var(--e101-auth-radius-sm);
	background: var(--e101-auth-accent);
	color: var(--e101-auth-text);
	font-weight: 700;
	font-size: 0.98rem;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: filter 0.15s ease, transform 0.05s ease;
}

.e101-auth__submit:hover {
	filter: brightness(0.97);
	color: var(--e101-auth-text);
}

.e101-auth__submit:active {
	transform: translateY(1px);
}

.e101-auth__submit:focus-visible {
	outline: 2px solid var(--e101-auth-text);
	outline-offset: 3px;
}

.e101-auth__submit--secondary {
	background: #f1f5f9;
	color: var(--e101-auth-text);
	border: 1px solid var(--e101-auth-border);
}

.e101-auth__submit--secondary:hover {
	background: #e8ecf4;
	color: var(--e101-auth-text);
}

.e101-auth__footer {
	margin-top: 1.35rem;
	text-align: center;
	font-size: 0.9rem;
}

.e101-auth__switch {
	margin: 1.35rem 0 0;
	text-align: center;
	font-size: 0.9rem;
	color: var(--e101-auth-muted);
}

.e101-auth__support {
	margin: 1.5rem 0 0;
	padding-top: 1.15rem;
	border-top: 1px solid var(--e101-auth-border);
	text-align: center;
	font-size: 0.88rem;
	line-height: 1.5;
	color: var(--e101-auth-muted);
}

.e101-auth__support-gap {
	opacity: 0.55;
}

.e101-auth__actions {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin-top: 1.15rem;
}

.e101-auth__btn {
	display: inline-block;
	text-align: center;
	padding: 0.62rem 1rem;
	border-radius: var(--e101-auth-radius-sm);
	font-weight: 650;
	text-decoration: none;
	font-size: 0.95rem;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.e101-auth__btn--solid {
	background: var(--e101-auth-accent);
	color: var(--e101-auth-text);
	border: 1px solid rgba(17, 24, 39, 0.08);
}

.e101-auth__btn--solid:hover {
	filter: brightness(0.97);
	color: var(--e101-auth-text);
}

.e101-auth__btn--ghost {
	background: #f8fafc;
	border: 1px solid var(--e101-auth-border);
	color: var(--e101-auth-text);
}

.e101-auth__btn--ghost:hover {
	background: #f1f5f9;
}

@media (min-width: 900px) {
	.e101-auth {
		display: grid;
		grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.05fr);
		margin-top: clamp(2rem, 6vh, 4rem);
		margin-bottom: clamp(2rem, 6vh, 4rem);
		padding: 0;
		box-shadow: var(--e101-auth-shadow);
		border-radius: var(--e101-auth-radius);
		overflow: hidden;
		min-height: 520px;
		background: var(--e101-auth-surface);
	}

	.e101-auth__aside {
		min-height: 100%;
	}

	.e101-auth__main {
		min-height: 100%;
	}
}
