/**
 * SecureGate frontend styles — guest-in-theme.
 *
 * Rules:
 * - All selectors scoped under .securegate-form-wrap / .securegate-*
 * - No global element, body, or theme class overrides
 * - Inherit theme font/color; structural layout only
 * - No !important
 */

.securegate-form-stage {
	position: relative;
	width: min(26rem, calc(100% - 2rem));
	max-width: 26rem;
	margin: 2.5rem auto 3rem;
	padding: 0 0 1.25rem;
}

.securegate-form-wrap {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 2rem 1.5rem 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 1.15rem;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	color: #0f172a;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
	box-sizing: border-box;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		0 1px 0 #ffffff,
		0 8px 0 #e8eef5,
		0 9px 0 #d5deea,
		0 18px 28px rgba(15, 23, 42, 0.16);
	animation: securegate-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.securegate-form-glare {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 42%;
	border-radius: 1.15rem 1.15rem 0 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
}

.securegate-form-wrap::before {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 100%;
	height: 4px;
	border-radius: 1.15rem 1.15rem 0 0;
	background: linear-gradient(90deg, #0f172a, #334155 55%, #94a3b8);
}

.securegate-form-wrap *,
.securegate-form-wrap *::before,
.securegate-form-wrap *::after {
	box-sizing: border-box;
}

.securegate-home-row {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 0 0 1.15rem;
	padding: 0;
}

.securegate-home-row-bottom {
	margin: 2rem 0 0.35rem;
}

.securegate-home-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: min(100%, 18rem);
	max-width: 100%;
	margin: 0;
	padding: 0.78rem 1.15rem;
	border-radius: 0.9rem;
	background: linear-gradient(180deg, #38bdf8 0%, #0284c7 52%, #0369a1 100%);
	color: #fff;
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.55),
		0 1px 0 #7dd3fc,
		0 2px 0 #38bdf8,
		0 3px 0 #0ea5e9,
		0 4px 0 #0284c7,
		0 5px 0 #0369a1,
		0 6px 0 #075985,
		0 7px 0 #0c4a6e,
		0 8px 0 #082f49,
		0 16px 18px rgba(3, 105, 161, 0.32),
		0 0 12px rgba(56, 189, 248, 0.45);
	animation: securegate-home-glow 2.4s ease-in-out infinite;
}

.securegate-home-link:hover,
.securegate-home-link:focus-visible {
	color: #fff;
	text-decoration: none;
	transform: translateY(-3px);
	outline: 2px solid #0284c7;
	outline-offset: 3px;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.65),
		0 1px 0 #7dd3fc,
		0 2px 0 #38bdf8,
		0 3px 0 #0ea5e9,
		0 4px 0 #0284c7,
		0 5px 0 #0369a1,
		0 6px 0 #075985,
		0 7px 0 #0c4a6e,
		0 8px 0 #083344,
		0 9px 0 #082f49,
		0 10px 0 #082f49,
		0 20px 22px rgba(3, 105, 161, 0.36),
		0 0 22px rgba(56, 189, 248, 0.8);
}

.securegate-home-link:active {
	color: #fff;
	transform: translateY(6px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.35),
		0 1px 0 #0284c7,
		0 2px 0 #082f49,
		0 8px 12px rgba(3, 105, 161, 0.28),
		0 0 14px rgba(56, 189, 248, 0.5);
}

.securegate-home-arrow {
	display: inline-flex;
	flex: 0 0 auto;
	animation: securegate-home-arrow 1.35s ease-in-out infinite;
}

.securegate-home-label {
	min-width: 0;
}

.securegate-form-logo-plate {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	max-width: min(13rem, 82%);
	min-width: 4.75rem;
	min-height: 4.75rem;
	margin: 0.2rem auto 1.15rem;
	padding: 0.7rem 1.05rem;
	border: 1px solid rgba(255, 255, 255, 0.95);
	border-radius: 1rem;
	background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.98),
		0 1px 0 #ffffff,
		0 6px 0 #e6edf5,
		0 7px 0 #c5d0de,
		0 14px 18px rgba(15, 23, 42, 0.18);
}

.securegate-form-logo {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 3.25rem;
	margin: 0 auto;
	object-fit: contain;
	object-position: center center;
	filter: drop-shadow(0 3px 0 rgba(15, 23, 42, 0.08)) drop-shadow(0 8px 10px rgba(15, 23, 42, 0.16));
}

.securegate-form-brand {
	display: flex;
	justify-content: center;
	margin: 0 0 1rem;
}

.securegate-form-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 0.9rem;
	background: linear-gradient(160deg, #334155, #0f172a);
	color: #fff;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.28),
		0 6px 0 #020617,
		0 12px 16px rgba(15, 23, 42, 0.22);
}

.securegate-form-title {
	margin: 0 0 0.35rem;
	padding: 0;
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
	font-family: inherit;
	color: #0f172a;
	text-align: center;
}

.securegate-form-description {
	margin: 0 0 1.5rem;
	padding: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	font-family: inherit;
	color: #64748b;
	text-align: center;
}

.securegate-form-error {
	margin: 0 0 1rem;
	padding: 0.75rem 0.9rem;
	border-radius: 0.25rem;
	border: 1px solid rgba(185, 28, 28, 0.45);
	background: rgba(185, 28, 28, 0.08);
	color: inherit;
	font-size: 0.9em;
	font-family: inherit;
}

.securegate-form {
	display: flex;
	flex-direction: column;
	gap: 0.95rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	color: #0f172a;
	text-align: left;
}

.securegate-field {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	text-align: left;
	animation: securegate-field-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.securegate-form .securegate-field:nth-child(1) { animation-delay: 0.08s; }
.securegate-form .securegate-field:nth-child(2) { animation-delay: 0.14s; }
.securegate-form .securegate-field:nth-child(3) { animation-delay: 0.2s; }
.securegate-form .securegate-field:nth-child(4) { animation-delay: 0.26s; }
.securegate-form .securegate-field:nth-child(5) { animation-delay: 0.32s; }

.securegate-form-wrap .securegate-field label {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: left;
	font-family: inherit;
	color: #334155;
}

.securegate-required {
	color: #b91c1c;
	margin-left: 0.15rem;
}

/* Fallback when the theme does not define .screen-reader-text */
.securegate-form-wrap .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.securegate-form-wrap .securegate-field input[type="text"],
.securegate-form-wrap .securegate-field input[type="email"],
.securegate-form-wrap .securegate-field input[type="password"],
.securegate-form-wrap .securegate-field input[type="tel"] {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0;
	padding: 0.85rem 0.95rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	background: #fff;
	color: #0f172a;
	font-size: 1rem;
	line-height: 1.4;
	font-family: inherit;
	text-align: left;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.securegate-form-wrap .securegate-field input::placeholder {
	color: #94a3b8;
}

.securegate-form-wrap .securegate-field input:hover {
	border-color: #cbd5e1;
}

.securegate-form-wrap .securegate-field input:focus {
	outline: none;
	border-color: #0f172a;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.1);
}

.securegate-help {
	margin: 0;
	font-size: 0.8em;
	font-family: inherit;
	color: inherit;
	opacity: 0.75;
}

.securegate-form-wrap .securegate-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0.45rem 0 0;
	padding: 0.95rem 1rem;
	border: 0;
	border-radius: 0.8rem;
	background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	font-family: inherit;
	letter-spacing: 0.12em;
	line-height: 1.25;
	text-transform: uppercase;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.securegate-form-wrap .securegate-submit:hover,
.securegate-form-wrap .securegate-submit:focus {
	color: #fff;
	filter: brightness(1.08);
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
}

.securegate-form-wrap .securegate-submit:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.16), 0 14px 28px rgba(15, 23, 42, 0.22);
}

.securegate-form-wrap .securegate-submit:active {
	transform: translateY(0);
}

.securegate-form-wrap .securegate-submit:disabled {
	opacity: 0.65;
	cursor: wait;
	transform: none;
}

@keyframes securegate-card-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes securegate-field-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes securegate-home-glow {
	0%,
	100% {
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.55),
			0 1px 0 #7dd3fc,
			0 2px 0 #38bdf8,
			0 3px 0 #0ea5e9,
			0 4px 0 #0284c7,
			0 5px 0 #0369a1,
			0 6px 0 #075985,
			0 7px 0 #0c4a6e,
			0 8px 0 #082f49,
			0 16px 18px rgba(3, 105, 161, 0.32),
			0 0 10px rgba(56, 189, 248, 0.35);
	}
	50% {
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.7),
			0 1px 0 #7dd3fc,
			0 2px 0 #38bdf8,
			0 3px 0 #0ea5e9,
			0 4px 0 #0284c7,
			0 5px 0 #0369a1,
			0 6px 0 #075985,
			0 7px 0 #0c4a6e,
			0 8px 0 #082f49,
			0 16px 18px rgba(3, 105, 161, 0.36),
			0 0 22px 3px rgba(56, 189, 248, 0.85);
	}
}

@keyframes securegate-home-glow-compact {
	0%,
	100% {
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.55),
			0 1px 0 #7dd3fc,
			0 2px 0 #38bdf8,
			0 3px 0 #0284c7,
			0 4px 0 #0369a1,
			0 5px 0 #075985,
			0 6px 0 #082f49,
			0 12px 14px rgba(3, 105, 161, 0.3),
			0 0 10px rgba(56, 189, 248, 0.35);
	}
	50% {
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.7),
			0 1px 0 #7dd3fc,
			0 2px 0 #38bdf8,
			0 3px 0 #0284c7,
			0 4px 0 #0369a1,
			0 5px 0 #075985,
			0 6px 0 #082f49,
			0 12px 14px rgba(3, 105, 161, 0.34),
			0 0 16px 2px rgba(56, 189, 248, 0.8);
	}
}

@keyframes securegate-home-arrow {
	0%,
	100% {
		transform: translateX(0);
	}
	50% {
		transform: translateX(-4px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.securegate-form-wrap,
	.securegate-field,
	.securegate-form-wrap .securegate-submit,
	.securegate-form-wrap .securegate-field input,
	.securegate-home-link,
	.securegate-home-arrow {
		animation: none;
		transition: none;
	}

	.securegate-form-wrap,
	.securegate-field,
	.securegate-form-wrap .securegate-submit,
	.securegate-form-wrap .securegate-field input,
	.securegate-home-link:hover,
	.securegate-home-link:focus-visible,
	.securegate-home-link:active,
	.securegate-home-arrow {
		transform: none;
	}
}

/* End page access — compact control fixed at the top-right of the screen */
.securegate-session-bar {
	position: fixed;
	top: max(0.65rem, env(safe-area-inset-top));
	right: max(0.65rem, env(safe-area-inset-right));
	left: auto;
	z-index: 100000;
	display: flex;
	justify-content: flex-end;
	width: auto;
	max-width: calc(100% - 1.3rem);
	margin: 0;
	padding: 0;
	pointer-events: none;
}

body.admin-bar .securegate-session-bar {
	top: calc(32px + 0.65rem);
}

.securegate-end-access {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0.42rem 0.7rem;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 0.4rem;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 46%),
		linear-gradient(180deg, #3b4a63 0%, #0f172a 100%);
	color: #f8fafc;
	font-family: inherit;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
	pointer-events: auto;
	transform: translateY(0);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.32),
		inset 0 -1px 0 rgba(0, 0, 0, 0.28),
		0 2px 0 #020617,
		0 6px 12px rgba(2, 6, 23, 0.28);
	transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
	animation: securegate-end-rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.securegate-end-access::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.38) 48%, transparent 68%);
	transform: translateX(-130%);
	animation: securegate-end-sheen 3.4s ease-in-out infinite;
	pointer-events: none;
}

.securegate-end-access-icon {
	display: inline-flex;
	width: 0.85rem;
	height: 0.85rem;
	flex: 0 0 auto;
}

.securegate-end-access-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.securegate-end-access:hover,
.securegate-end-access:focus-visible {
	color: #fff;
	filter: brightness(1.08);
	transform: translateY(-1px);
	outline: none;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.4),
		inset 0 -1px 0 rgba(0, 0, 0, 0.22),
		0 3px 0 #020617,
		0 8px 14px rgba(2, 6, 23, 0.32);
}

.securegate-end-access:focus-visible {
	box-shadow:
		0 0 0 3px rgba(15, 23, 42, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.4),
		0 3px 0 #020617,
		0 8px 14px rgba(2, 6, 23, 0.32);
}

.securegate-end-access:active {
	transform: translateY(1px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.2),
		0 1px 0 #020617,
		0 3px 6px rgba(2, 6, 23, 0.28);
}

.securegate-end-access:disabled {
	opacity: 0.72;
	cursor: wait;
	filter: none;
	transform: translateY(1px);
	animation: none;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.16),
		0 1px 0 #020617;
}

.securegate-pdf-viewer {
	box-sizing: border-box;
	width: 100vw;
	max-width: 100vw;
	margin-top: 0.75rem;
	margin-bottom: 0.75rem;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
}

.securegate-pdf-toolbar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0.45rem 10.5rem 0.45rem 0.85rem;
	font-size: 0.9em;
}

.securegate-pdf-pages {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	width: 100%;
}

.securegate-pdf-viewer .securegate-pdf-page {
	margin: 0;
	width: 100%;
	max-width: none;
	min-height: 0;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.securegate-pdf-page-label {
	display: block;
	padding: 0.35rem 0.6rem;
	font-size: 0.75rem;
	opacity: 0.7;
}

.securegate-pdf-sheet {
	position: relative;
	width: 100%;
	direction: ltr;
}

.securegate-pdf-canvas {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.securegate-pdf-sheet .textLayer {
	position: absolute;
	text-align: initial;
	inset: 0;
	overflow: hidden;
	line-height: 1;
	text-size-adjust: none;
	forced-color-adjust: none;
	transform-origin: 0 0;
	z-index: 2;
	opacity: 1;
	cursor: text;
	user-select: text;
	-webkit-user-select: text;
}

.securegate-pdf-sheet .textLayer span,
.securegate-pdf-sheet .textLayer br {
	color: transparent;
	position: absolute;
	white-space: pre;
	cursor: text;
	transform-origin: 0 0;
	margin: 0;
	padding: 0;
	line-height: 1;
}

.securegate-pdf-sheet .textLayer span.markedContent {
	top: 0;
	height: 0;
}

.securegate-pdf-sheet .textLayer ::selection,
.securegate-pdf-sheet .textLayer ::-moz-selection {
	background: rgba(0, 100, 220, 0.35);
	color: transparent;
}

.securegate-pdf-sheet .textLayer br::selection,
.securegate-pdf-sheet .textLayer br::-moz-selection {
	background: transparent;
}

.securegate-pdf-sheet .textLayer .endOfContent {
	display: block;
	position: absolute;
	inset: 100% 0 0;
	z-index: -1;
	cursor: default;
	user-select: none;
	-webkit-user-select: none;
}

.securegate-pdf-sheet .textLayer .endOfContent.active {
	top: 0;
}

.securegate-pdf-sheet .textLayer[data-main-rotation="90"],
.securegate-pdf-sheet .annotationLayer[data-main-rotation="90"] {
	transform: rotate(90deg) translateY(-100%);
}

.securegate-pdf-sheet .textLayer[data-main-rotation="180"],
.securegate-pdf-sheet .annotationLayer[data-main-rotation="180"] {
	transform: rotate(180deg) translate(-100%, -100%);
}

.securegate-pdf-sheet .textLayer[data-main-rotation="270"],
.securegate-pdf-sheet .annotationLayer[data-main-rotation="270"] {
	transform: rotate(270deg) translateX(-100%);
}

.securegate-pdf-sheet .annotationLayer {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
	pointer-events: none;
	transform-origin: 0 0;
}

.securegate-pdf-sheet .annotationLayer section {
	position: absolute;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: initial;
	pointer-events: none;
	box-sizing: border-box;
	transform-origin: 0 0;
}

.securegate-pdf-sheet .annotationLayer .linkAnnotation,
.securegate-pdf-sheet .annotationLayer .linkAnnotation > a {
	pointer-events: auto;
}

.securegate-pdf-sheet .annotationLayer .linkAnnotation > a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	color: transparent;
	font-size: 1em;
	text-decoration: none;
	box-shadow: none;
}

.securegate-pdf-sheet .annotationLayer .linkAnnotation > a:hover,
.securegate-pdf-sheet .annotationLayer .linkAnnotation > a:focus-visible {
	background: rgba(255, 214, 0, 0.28);
	outline: 0;
}

.securegate-pdf-fallback {
	margin: 0.75rem 0 0;
	font-size: 0.9em;
}

.securegate-pdf-viewer:not(.is-fallback) .securegate-pdf-fallback {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

.securegate-pdf-viewer.is-fallback .securegate-pdf-pages,
.securegate-pdf-viewer.is-fallback .securegate-pdf-toolbar {
	display: none;
}

@media (max-width: 640px) {
	.securegate-form-stage {
		width: calc(100% - 1.5rem);
		margin: 1.25rem auto 2rem;
	}

	.securegate-form-wrap {
		margin: 0;
		padding: 1.5rem 1.05rem 1.2rem;
		border-radius: 1rem;
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.95),
			0 1px 0 #ffffff,
			0 6px 0 #e8eef5,
			0 7px 0 #d5deea,
			0 14px 22px rgba(15, 23, 42, 0.16);
	}

	.securegate-form-title {
		font-size: 1.25rem;
	}

	.securegate-home-row {
		margin-bottom: 0.95rem;
	}

	.securegate-home-row-bottom {
		margin-top: 1.65rem;
		margin-bottom: 0.2rem;
	}

	.securegate-home-link {
		width: 100%;
		padding: 0.72rem 0.8rem;
		font-size: 0.88rem;
		animation-name: securegate-home-glow-compact;
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.55),
			0 1px 0 #7dd3fc,
			0 2px 0 #38bdf8,
			0 3px 0 #0284c7,
			0 4px 0 #0369a1,
			0 5px 0 #075985,
			0 6px 0 #082f49,
			0 12px 14px rgba(3, 105, 161, 0.3),
			0 0 10px rgba(56, 189, 248, 0.4);
	}

	.securegate-form-logo-plate {
		max-width: min(11rem, 78%);
		min-width: 4.25rem;
		min-height: 4.15rem;
		margin-bottom: 0.95rem;
		padding: 0.55rem 0.85rem;
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.98),
			0 1px 0 #ffffff,
			0 4px 0 #e6edf5,
			0 5px 0 #c5d0de,
			0 10px 14px rgba(15, 23, 42, 0.16);
	}

	.securegate-form-logo {
		max-height: 2.65rem;
	}

	body.admin-bar .securegate-session-bar {
		top: calc(46px + 0.55rem);
	}

	.securegate-session-bar {
		top: max(0.55rem, env(safe-area-inset-top));
		right: max(0.55rem, env(safe-area-inset-right));
		width: auto;
		max-width: calc(100% - 1.1rem);
	}

	.securegate-end-access {
		width: auto;
		min-width: 0;
		padding: 0.38rem 0.6rem;
		font-size: 0.58rem;
	}
}

@keyframes securegate-end-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes securegate-end-sheen {
	0%,
	58% {
		transform: translateX(-130%);
	}
	82%,
	100% {
		transform: translateX(130%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.securegate-end-access,
	.securegate-end-access::after {
		animation: none;
		transition: none;
	}

	.securegate-end-access:hover,
	.securegate-end-access:focus-visible,
	.securegate-end-access:active,
	.securegate-end-access:disabled {
		transform: none;
	}
}
