:root {
	color-scheme: dark;
	font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
	margin: 0;
}

body {
	background: #111927;
	color: #fff;
}

button,
input {
	font: inherit;
}

button {
	cursor: pointer;
}

.intro-page {
	--intro-background: linear-gradient(135deg, #15283b, #0b111d);
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr auto;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	background-image: var(--intro-background);
	background-position: center;
	background-size: cover;
}

.intro-page:not(.has-background)::before {
	position: absolute;
	inset: -20%;
	background:
		radial-gradient(circle at 24% 35%, rgba(89, 145, 179, .35), transparent 28%),
		radial-gradient(circle at 78% 68%, rgba(195, 146, 77, .18), transparent 22%);
	content: "";
	filter: blur(12px);
}

.intro-page__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 11, 19, .72) 0%, rgba(8, 14, 22, .44) 45%, rgba(5, 10, 17, .76) 100%);
	backdrop-filter: blur(2px);
}

.intro-header,
.intro-content,
.intro-footer {
	position: relative;
	z-index: 1;
}

.intro-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 28px clamp(22px, 4vw, 72px);
}

.intro-brand {
	display: inline-flex;
	align-items: center;
	max-width: 230px;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	text-decoration: none;
}

.intro-brand img {
	display: block;
	max-width: 190px;
	max-height: 64px;
	object-fit: contain;
}

.intro-access-button,
.intro-content__access {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
	background: rgba(9, 15, 24, .38);
	color: #fff;
	transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.intro-access-button {
	padding: 11px 17px;
}

.intro-access-button:hover,
.intro-content__access:hover {
	border-color: rgba(255, 255, 255, .75);
	background: rgba(255, 255, 255, .12);
	transform: translateY(-1px);
}

.intro-access-button svg,
.intro-content__access svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.intro-content {
	align-self: center;
	width: min(900px, calc(100% - 44px));
	margin: 0 auto;
	padding: 56px 0 90px;
	text-align: center;
}

.intro-content__eyebrow {
	margin: 0 0 24px;
	color: rgba(255, 255, 255, .78);
	font-size: clamp(13px, 1.3vw, 16px);
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.intro-content h1 {
	margin: 0;
	font-size: clamp(42px, 6.6vw, 88px);
	font-weight: 500;
	letter-spacing: -.045em;
	line-height: 1.04;
	text-wrap: balance;
}

.intro-content__text {
	max-width: 660px;
	margin: 28px auto 0;
	color: rgba(255, 255, 255, .82);
	font-size: clamp(16px, 1.5vw, 20px);
	line-height: 1.7;
}

.intro-content__access {
	margin-top: 34px;
	padding: 13px 21px;
	display: none;
}

.intro-footer {
	padding: 0 22px 24px;
	color: rgba(255, 255, 255, .55);
	font-size: 13px;
	text-align: center;
}

.intro-modal {
	position: fixed;
	z-index: 20;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
}

.intro-modal.is-open {
	opacity: 1;
	pointer-events: auto;
}

.intro-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 8, 14, .76);
	backdrop-filter: blur(8px);
}

.intro-modal__dialog {
	position: relative;
	width: min(460px, 100%);
	padding: 42px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
	color: #17202d;
	transform: translateY(16px) scale(.98);
	transition: transform .2s ease;
}

.intro-modal.is-open .intro-modal__dialog {
	transform: translateY(0) scale(1);
}

.intro-modal__close {
	position: absolute;
	top: 13px;
	right: 16px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #76808e;
	font-size: 29px;
	line-height: 1;
}

.intro-modal__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 23px;
	border-radius: 15px;
	background: #eef4f4;
	color: #183d44;
}

.intro-modal__icon svg {
	width: 25px;
	height: 25px;
	fill: currentColor;
}

.intro-modal h2 {
	margin: 0;
	font-size: 28px;
	letter-spacing: -.025em;
}

.intro-modal p {
	margin: 11px 0 25px;
	color: #687383;
	line-height: 1.55;
}

.intro-modal label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 700;
}

.intro-password-field {
	position: relative;
}

.intro-password-field input {
	width: 100%;
	height: 50px;
	padding: 0 48px 0 15px;
	border: 1px solid #d3d9e1;
	border-radius: 10px;
	outline: 0;
	background: #fff;
	color: #17202d;
}

.intro-password-field input:focus {
	border-color: #315d63;
	box-shadow: 0 0 0 3px rgba(49, 93, 99, .12);
}

.intro-password-field button {
	position: absolute;
	top: 0;
	right: 0;
	display: grid;
	place-items: center;
	width: 48px;
	height: 50px;
	border: 0;
	background: transparent;
	color: #6e7886;
}

.intro-password-field svg {
	width: 21px;
	height: 21px;
	fill: currentColor;
}

.intro-modal__submit {
	width: 100%;
	height: 50px;
	margin-top: 16px;
	border: 0;
	border-radius: 10px;
	background: #193f46;
	color: #fff;
	font-weight: 700;
	transition: background .2s ease;
}

.intro-modal__submit:hover {
	background: #102f35;
}

.intro-modal__error {
	margin: -7px 0 18px;
	padding: 11px 13px;
	border: 1px solid #f3c1c1;
	border-radius: 9px;
	background: #fff2f2;
	color: #a42828;
	font-size: 14px;
	line-height: 1.45;
}

body.intro-modal-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.intro-header {
		padding: 20px;
	}

	.intro-brand img {
		max-width: 145px;
		max-height: 50px;
	}

	.intro-access-button span {
		display: none;
	}

	.intro-access-button {
		padding: 11px;
	}

	.intro-content {
		padding: 40px 0 70px;
	}

	.intro-content h1 {
		font-size: clamp(38px, 13vw, 58px);
	}

	.intro-content__access {
		display: inline-flex;
	}

	.intro-modal__dialog {
		padding: 34px 24px 26px;
		border-radius: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
