@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

.auth-page {
	--auth-primary: #6366f1;
	--auth-primary-hover: #5558e3;
	--auth-text: #e2e8f0;
	--auth-muted: #94a3b8;
	min-height: 100vh;
	position: relative;
	color: var(--auth-text);
	overflow-x: hidden;
}

.auth-page__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.auth-page__dim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(10, 15, 28, 0.55);
}

.auth-page__fade {
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		radial-gradient(ellipse 90% 70% at 50% 45%, rgba(20, 28, 45, 0.35) 0%, rgba(10, 15, 28, 0.88) 72%),
		linear-gradient(180deg, rgba(10, 15, 28, 0.25) 0%, rgba(10, 15, 28, 0.75) 100%);
}

.auth-page__wrap {
	position: relative;
	z-index: 3;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 3.25rem 1.25rem 2.5rem;
}

.auth-page__header {
	text-align: center;
	margin-bottom: 1.75rem;
	padding-top: 5.75rem;
}

.auth-page__eyebrow {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(196, 181, 253, 0.85);
	margin: 0 0 0.5rem;
}

.auth-page__brand {
	font-family: 'Oswald', sans-serif;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.15;
	margin: 0;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.auth-page__brand span {
	font-weight: 400;
	opacity: 0.8;
}

.auth-page__body {
	width: 100%;
	max-width: 920px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
	grid-template-rows: auto 1fr;
	gap: 0.65rem 2.5rem;
	align-items: stretch;
	margin-top: 0.85rem;
}

.auth-page__body--solo {
	grid-template-columns: minmax(280px, 380px);
	grid-template-rows: auto;
	justify-content: center;
}

.auth-side__news-head {
	grid-column: 1;
	grid-row: 1;
}

.auth-page__news-col {
	grid-column: 1;
	grid-row: 2;
	min-width: 0;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.auth-page__form-col {
	grid-column: 2;
	grid-row: 2;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	max-width: 380px;
	justify-self: end;
}

.auth-page__body--solo .auth-page__form-col {
	grid-column: 1;
	grid-row: 1;
	justify-self: center;
}

.auth-page__footer {
	width: 100%;
	max-width: 920px;
	margin-top: 3.25rem;
	padding-top: 0.25rem;
}

@media (min-width: 992px) {
	.auth-page__news-col,
	.auth-page__form-col {
		min-height: 430px;
	}

	.auth-page__form-col {
		height: 100%;
	}

	.auth-card {
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: 100%;
		padding: 2.75rem 1.85rem;
		box-sizing: border-box;
	}
}

.auth-legal-footer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.4rem;
	font-size: 0.8rem;
	color: rgba(148, 163, 184, 0.9);
}

.auth-legal-footer--center {
	align-items: center;
	text-align: center;
}

.auth-legal-footer__copy {
	color: rgba(203, 213, 225, 0.9);
}

.auth-legal-footer__link {
	color: rgba(226, 232, 240, 0.85);
	text-decoration: none;
	line-height: 1.45;
}

.auth-legal-footer__link:hover {
	color: #fff;
}

.auth-side__news-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.auth-side__news-label {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: rgba(226, 232, 240, 0.75);
}

.auth-side__news-all {
	font-size: 0.78rem;
	color: rgba(196, 181, 253, 0.95);
	text-decoration: none;
	white-space: nowrap;
}

.auth-side__news-all:hover {
	color: #ede9fe;
}

.auth-side__news-cards {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	flex: 1;
	min-height: 0;
	height: 100%;
}

.auth-news-featured {
	display: flex;
	flex-direction: column;
	position: relative;
	border-radius: 0.65rem;
	overflow: hidden;
	flex: 1;
	min-height: 200px;
	text-decoration: none;
}

.auth-news-featured__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.02);
	transition: transform 0.35s ease;
}

.auth-news-featured:hover .auth-news-featured__bg {
	transform: scale(1.06);
}

.auth-news-featured__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.35) 55%, rgba(15, 23, 42, 0.15) 100%);
}

.auth-news-featured__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	flex: 1;
	min-height: 200px;
	padding: 1.1rem 1rem 1rem;
}

.auth-news-featured__date {
	font-size: 0.72rem;
	color: rgba(203, 213, 225, 0.8);
	margin-bottom: 0.35rem;
}

.auth-news-featured__title {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
	margin-bottom: 0.25rem;
}

.auth-news-featured__excerpt {
	font-size: 0.78rem;
	line-height: 1.45;
	color: rgba(203, 213, 225, 0.75);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.auth-card {
	width: 100%;
	padding: 2rem 1.75rem 1.75rem;
	background: rgba(37, 48, 65, 0.48);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-radius: 0.75rem;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.auth-card__title {
	font-family: 'Oswald', sans-serif;
	font-size: 1.35rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
	margin: 0 0 0.45rem;
	color: #fff;
}

.auth-card__subtitle {
	text-align: center;
	font-size: 0.875rem;
	line-height: 1.65;
	color: var(--auth-muted);
	margin: 0 0 1.35rem;
}

.auth-card__subtitle a {
	color: #c4b5fd;
	text-decoration: none;
}

.auth-card__subtitle a:hover {
	color: #ddd6fe;
	text-decoration: underline;
}

.auth-field {
	margin-bottom: 0.85rem;
	position: relative;
}

.auth-field__icon {
	position: absolute;
	left: 0.95rem;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(148, 163, 184, 0.7);
	font-size: 0.85rem;
	pointer-events: none;
	z-index: 2;
}

.auth-field .form-control {
	background: rgba(17, 24, 39, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 0.4rem;
	color: var(--auth-text);
	padding: 0.8rem 1rem 0.8rem 2.6rem;
	font-size: 0.925rem;
	height: auto;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-field .form-control::placeholder {
	color: rgba(148, 163, 184, 0.55);
}

.auth-field .form-control:focus {
	background: rgba(17, 24, 39, 0.6);
	border-color: rgba(99, 102, 241, 0.55);
	box-shadow: none;
	color: #fff;
	outline: none;
}

.auth-field:focus-within .auth-field__icon {
	color: rgba(165, 180, 252, 0.85);
}

.auth-card__actions {
	margin: 0.15rem 0 1.1rem;
}

.auth-card__link {
	font-size: 0.84rem;
	color: #c4b5fd;
	text-decoration: none;
}

.auth-card__link:hover {
	color: #ddd6fe;
	text-decoration: underline;
}

.auth-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	width: 100%;
	padding: 0.82rem 1.25rem;
	border: none;
	border-radius: 0.4rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #fff;
	background: var(--auth-primary);
	cursor: pointer;
	transition: background 0.2s ease;
}

.auth-btn:hover {
	background: var(--auth-primary-hover);
	color: #fff;
}

.auth-card__back {
	text-align: center;
	margin-top: 1.15rem;
	padding-top: 1.15rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-check {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin-bottom: 1.1rem;
	font-size: 0.84rem;
	line-height: 1.5;
	color: var(--auth-muted);
}

.auth-check input {
	margin-top: 0.2rem;
	flex-shrink: 0;
	accent-color: var(--auth-primary);
}

.auth-check a {
	color: #c4b5fd;
	text-decoration: none;
}

.auth-check a:hover {
	color: #ddd6fe;
	text-decoration: underline;
}

.auth-honeypot {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.auth-alert {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	pointer-events: none;
}

.auth-alert__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 15, 28, 0);
	transition: background 0.42s ease;
}

.auth-alert.is-open .auth-alert__backdrop {
	background: rgba(10, 15, 28, 0.62);
}

.auth-alert__dialog {
	position: relative;
	width: 100%;
	max-width: 400px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	text-align: center;
	background: #253041;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.85rem;
	box-shadow: 0 28px 56px rgba(0, 0, 0, 0.38);
	opacity: 0;
	transform: scale(0.96) translateY(14px);
	transition:
		opacity 0.38s ease,
		transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-alert.is-open .auth-alert__dialog {
	opacity: 1;
	transform: scale(1) translateY(0);
}

.auth-alert.is-closing .auth-alert__dialog {
	opacity: 0;
	transform: scale(0.98) translateY(8px);
	transition:
		opacity 0.28s ease,
		transform 0.3s ease;
}

.auth-alert.is-open,
.auth-alert.is-closing {
	pointer-events: auto;
}

.auth-alert__body {
	padding: 1.65rem 1.5rem 1.15rem;
	overflow: hidden;
}

.auth-alert__icon {
	width: 3.25rem;
	height: 3.25rem;
	margin: 0 auto 0.9rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
}

.auth-alert__icon i {
	display: block;
	line-height: 1;
}

.auth-alert__dialog--success .auth-alert__icon {
	background: rgba(34, 197, 94, 0.14);
	color: #4ade80;
}

.auth-alert__dialog--error .auth-alert__icon {
	background: rgba(239, 68, 68, 0.14);
	color: #f87171;
}

.auth-alert__dialog--info .auth-alert__icon {
	background: rgba(99, 102, 241, 0.14);
	color: #a5b4fc;
}

.auth-alert__dialog--warning .auth-alert__icon {
	background: rgba(245, 158, 11, 0.14);
	color: #fbbf24;
}

.auth-alert__title {
	margin: 0 0 0.55rem;
	font-family: 'Oswald', sans-serif;
	font-size: 1.12rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
}

.auth-alert__text {
	font-size: 0.9rem;
	line-height: 1.65;
	color: #94a3b8;
	overflow: hidden;
}

.auth-alert__footer {
	margin-top: 0.25rem;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.18);
	border-radius: 0 0 0.85rem 0.85rem;
	overflow: hidden;
}

.auth-alert__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	width: 100%;
	padding: 1rem 1.35rem;
	border: none;
	border-radius: 0;
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(180deg, #6d70f3 0%, #4f46e5 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
	cursor: pointer;
	transition: filter 0.2s ease, background 0.2s ease;
}

.auth-alert__btn:hover {
	filter: brightness(1.06);
	background: linear-gradient(180deg, #7578f5 0%, #5558e3 100%);
}

.auth-alert__btn:active {
	filter: brightness(0.96);
}

@media (max-width: 991px) {
	.auth-page__body {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		max-width: 400px;
		gap: 0.65rem;
	}

	.auth-side__news-head {
		grid-column: 1;
		grid-row: auto;
		order: 1;
	}

	.auth-page__news-col {
		grid-column: 1;
		grid-row: auto;
		order: 2;
		min-height: auto;
	}

	.auth-page__form-col {
		grid-column: 1;
		grid-row: auto;
		max-width: none;
		justify-self: stretch;
		order: 3;
		min-height: auto;
	}

	.auth-card {
		flex: none;
		min-height: auto;
		padding: 2rem 1.75rem 1.75rem;
	}

	.auth-side__news-cards {
		height: auto;
	}

	.auth-news-featured {
		min-height: 168px;
		flex: none;
	}

	.auth-news-featured__content {
		min-height: 168px;
	}

	.auth-page__header {
		margin-bottom: 1.5rem;
	}

	.auth-page__footer {
		margin-top: 1.5rem;
	}
}
