/**
 * Access gate. Deliberately self-contained: the gate renders outside the theme
 * templates, so it cannot rely on Blocksy's layout classes.
 */

/*
 * The gate deliberately strips the theme's stylesheets, so Blocksy's palette
 * custom properties are NOT defined here. Everything below resolves through
 * these locals, whose fallbacks are the Spordihooldus brand colours. Change the
 * hex values here if the Customizer palette changes.
 */
.sporb2b-gate {
	--sporb2b-accent: var(--theme-palette-color-1, #1b74ba);
	--sporb2b-accent-hover: var(--theme-palette-color-2, #34b2db);
	--sporb2b-ink: var(--theme-palette-color-4, #111111);
	--sporb2b-border: var(--theme-palette-color-5, #e6eaec);
	--sporb2b-surface: var(--theme-palette-color-6, #f3f4f6);
	--sporb2b-field: var(--theme-palette-color-7, #f9fafb);
	--sporb2b-card: var(--theme-palette-color-8, #ffffff);

	margin: 0;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: var(--sporb2b-surface);
	color: var(--theme-text-color, #576471);
	font-family: var(--theme-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
	line-height: 1.5;
	box-sizing: border-box;
}

.sporb2b-gate *,
.sporb2b-gate *::before,
.sporb2b-gate *::after {
	box-sizing: inherit;
}

.sporb2b-gate__card {
	width: 100%;
	max-width: 420px;
	background: var(--sporb2b-card);
	border-radius: 12px;
	padding: 32px 28px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.sporb2b-gate__header {
	text-align: center;
	margin-bottom: 24px;
}

.sporb2b-gate__header img {
	max-width: 200px;
	height: auto;
}

.sporb2b-gate__heading {
	font-size: 1.125rem;
	margin: 0 0 4px;
	color: var(--sporb2b-ink);
}

.sporb2b-gate__lead {
	margin: 0 0 16px;
	font-size: 0.9375rem;
}

.sporb2b-gate__error {
	margin: 0 0 20px;
	padding: 12px 14px;
	border-radius: 8px;
	background: #fdecea;
	border: 1px solid #f5c6c2;
	color: #8a1f11;
	font-size: 0.9375rem;
}

.sporb2b-gate__form input[type="text"],
.sporb2b-gate__login input[type="text"],
.sporb2b-gate__login input[type="password"] {
	width: 100%;
	padding: 12px 14px;
	font-size: 1rem;
	border: 1px solid var(--sporb2b-border);
	border-radius: 8px;
	background: var(--sporb2b-field);
}

.sporb2b-gate__form input[type="text"] {
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.sporb2b-gate__form input:focus,
.sporb2b-gate__login input:focus {
	outline: 2px solid var(--sporb2b-accent);
	outline-offset: 1px;
	border-color: transparent;
}

.sporb2b-gate__submit,
.sporb2b-gate__login input[type="submit"] {
	width: 100%;
	margin-top: 12px;
	padding: 12px 16px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--sporb2b-card);
	background: var(--sporb2b-ink);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.sporb2b-gate__submit:hover,
.sporb2b-gate__login input[type="submit"]:hover {
	background: var(--sporb2b-accent-hover);
}

.sporb2b-gate__login {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--sporb2b-border);
	font-size: 0.9375rem;
}

.sporb2b-gate__login summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--sporb2b-ink);
}

.sporb2b-gate__login p {
	margin: 12px 0 0;
}

.sporb2b-gate__login label {
	display: block;
	margin-bottom: 4px;
}

.sporb2b-gate__login .login-remember label {
	display: inline;
	font-weight: 400;
}

.sporb2b-gate__lost {
	text-align: center;
}

.sporb2b-gate__languages {
	margin-top: 24px;
	text-align: center;
	font-size: 0.875rem;
}

.sporb2b-gate__languages ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.sporb2b-gate a {
	color: var(--sporb2b-accent);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
