html,
body {
	min-height: 100%;
}

body {
	margin: 0;
	background: #070707;
	font-family: Arial, sans-serif;
	color: #fff;
}

/* === PAGE BACKGROUND === */

.auth-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 32px 16px;
	background:
		radial-gradient(circle at top left, rgba(47, 79, 255, .18), transparent 32%),
		radial-gradient(circle at top center, rgba(95, 79, 255, .15), transparent 28%),
		radial-gradient(circle at bottom right, rgba(42, 91, 255, .12), transparent 30%),
		#070707;
}

/* === HEADER === */

.auth-logo-wrap {
	text-align: center;
	margin-bottom: 24px;
}

.auth-brand {
	margin-top: 14px;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: .02em;
	color: #fff;
}

/* === CARD === */

.auth-card {
	width: 100%;
	max-width: 560px;
	padding: 32px;
	border-radius: 18px;

	background: linear-gradient(
		145deg,
		rgba(18, 18, 22, .96),
		rgba(10, 10, 12, .98)
	);

	border: 1px solid rgba(255, 255, 255, .06);

	box-shadow:
		0 24px 80px rgba(0, 0, 0, .6),
		inset 0 0 0 1px rgba(255, 255, 255, .02);
}

/* === TELEGRAM BUTTON === */

.btn-telegram {
	background: linear-gradient(90deg, #229ed9, #2a7bff);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 11px 28px;
	font-size: 16px;
	font-weight: 700;

	box-shadow: 0 10px 30px rgba(34, 158, 217, .25);
	transition: .2s ease;
}

.btn-telegram:hover {
	background: linear-gradient(90deg, #2aa7e0, #3a8bff);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 14px 35px rgba(34, 158, 217, .35);
}

.btn-telegram i {
	font-size: 20px;
	margin-right: 8px;
}

/* === DIVIDER === */

.auth-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 28px 0;
	color: #a0a0b5;
}

.auth-divider:before,
.auth-divider:after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(255, 255, 255, .08);
}

.auth-divider span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 999px;
	font-size: 14px;
	background: rgba(255, 255, 255, .03);
	color: #fff;
}

/* === TABS === */

.auth-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 26px;
}

.auth-tab {
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 999px;
	padding: 12px 16px;
	background: rgba(255, 255, 255, .02);
	color: #9fa3b8;
	font-size: 16px;
	font-weight: 600;
	transition: .2s ease;
}

.auth-tab:hover {
	color: #fff;
	background: rgba(255, 255, 255, .05);
}

.auth-tab.active {
	background: linear-gradient(90deg, #5f4fff, #2a5bff);
	color: #fff;
	border-color: transparent;
	font-weight: 700;

	box-shadow: 0 8px 25px rgba(95, 79, 255, .25);
}

/* === FORMS === */

.auth-form {
	display: none;
}

.auth-form.active {
	display: block;
}

/* === INPUTS === */

.form-label {
	color: #fff;
	margin-bottom: 8px;
	font-size: 15px;
	font-weight: 600;
}

.auth-input {
	height: 56px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .035);
	border: 1px solid rgba(255, 255, 255, .08);
	color: #fff;
	padding: 0 18px;
	transition: .2s ease;
}

.auth-input::placeholder {
	color: rgba(255, 255, 255, .35);
}

.auth-input:hover {
	border-color: rgba(255, 255, 255, .18);
}

.auth-input:focus {
	background: rgba(255, 255, 255, .06);
	border-color: #5f4fff;
	color: #fff;

	box-shadow:
		0 0 0 .2rem rgba(95, 79, 255, .15),
		0 0 25px rgba(42, 91, 255, .08);
}

/* === PRIMARY BUTTON === */

.btn-auth {
	height: 50px;
	margin-top: 4px;
	border: 0;
	border-radius: 999px;

	background: linear-gradient(90deg, #5f4fff, #2a5bff);
	color: #fff;

	font-weight: 700;

	box-shadow: 0 10px 30px rgba(47, 79, 255, .25);
	transition: .2s ease;
}

.btn-auth:hover {
	background: linear-gradient(90deg, #6b5cff, #3a6aff);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 14px 35px rgba(47, 79, 255, .35);
}

.btn-auth:active {
	transform: translateY(0);
	box-shadow: 0 6px 20px rgba(47, 79, 255, .25);
}

/* === LINKS === */

.auth-link {
	border: 0;
	background: transparent;
	color: #b8b8c6;
	font-size: 16px;
	padding: 0;
}

.auth-link:hover {
	color: #fff;
}

/* === TEXT === */

.auth-note,
.auth-help-text {
	color: #8c8fa3;
	text-align: center;
	font-size: 14px;
	line-height: 1.35;
}

.auth-note {
	margin-top: 18px;
}

.auth-help-text {
	margin-bottom: 24px;
}

/* === MOBILE === */

@media (max-width: 575px) {
	.auth-card {
		padding: 24px 18px;
		border-radius: 16px;
	}

	.auth-brand {
		font-size: 26px;
	}

	.btn-telegram {
		width: 100%;
		font-size: 15px;
	}

	.auth-tabs {
		gap: 8px;
	}

	.auth-tab {
		font-size: 15px;
	}
}


.auth-alert {
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, .08);
	margin-bottom: 22px;
	font-size: 14px;
}

.auth-alert.alert-danger {
	background: rgba(220, 53, 69, .12);
	color: #ffb7bf;
	border-color: rgba(220, 53, 69, .28);
}

.auth-alert .btn-close {
	filter: invert(1) grayscale(100%) brightness(200%);
	opacity: .65;
}

.auth-alert .btn-close:hover {
	opacity: 1;
}