/* Страницы входа и регистрации — тёмная тема, неоновая зелёная акцент */

@font-face {
	font-family: 'TacticSans';
	src: url('../fonts/TacticSansExd-Bld.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.auth-page {
	background: #0a0a0a;
	color: #fff;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-box {
	width: 100%;
	max-width: 400px;
}

.auth-title {
	font-family: 'TacticSans', sans-serif;
	font-weight: 700;
	font-size: 36px;
	color: #fff;
	text-align: center;
	margin-bottom: 40px;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.auth-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.auth-label {
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.auth-input {
	background: #0a0a0a;
	border: 1px solid #bded45;
	border-radius: 8px;
	color: #fff;
	padding: 12px 16px;
	font-size: 16px;
	outline: none;
	width: 100%;
}

.auth-input::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.auth-input:focus {
	box-shadow: 0 0 0 2px rgba(189, 237, 69, 0.3);
}

.auth-submit {
	width: 100%;
	background: #bded45;
	border: none;
	border-radius: 8px;
	color: #0a0a0a;
	padding: 14px 24px;
	font-family: 'TacticSans', sans-serif;
	font-weight: 700;
	font-size: 18px;
	cursor: pointer;
	margin-top: 8px;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
	background: #a8e03a;
	box-shadow: 0 0 20px rgba(189, 237, 69, 0.4);
}

.auth-link-wrap {
	text-align: center;
	margin-top: 28px;
}

.auth-link {
	color: #fff;
	text-decoration: underline;
	font-size: 15px;
	transition: color 0.2s ease;
}

.auth-link:hover {
	color: #bded45;
}

.auth-back {
	position: absolute;
	top: 24px;
	left: 24px;
	color: #bded45;
	text-decoration: none;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.auth-back:hover {
	text-decoration: underline;
}

.auth-page {
	position: relative;
}

/* Поле пароля с кнопкой «глаз» */
.auth-password-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.auth-password-wrap .auth-input {
	padding-right: 48px;
}
.auth-password-toggle {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}
.auth-password-toggle:hover {
	color: #bded45;
}
.auth-password-icon {
	flex-shrink: 0;
}

/* Страница «Проверьте почту» */
.auth-verify-box {
	width: 100%;
	max-width: 420px;
	text-align: center;
}
.auth-verify-text {
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 28px;
}
.auth-verify-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
}
.auth-verify-actions .auth-back {
	position: static;
	display: inline-flex;
}
.auth-verify-actions .btn-verify-back {
	background: transparent;
	border: 1px solid #bded45;
	border-radius: 8px;
	color: #bded45;
	padding: 12px 24px;
	font-size: 16px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}
.auth-verify-actions .btn-verify-back:hover {
	background: #bded45;
	color: #0a0a0a;
}

html {
	-webkit-text-size-adjust: 100%;
}

@media (max-width: 480px) {
	.auth-page {
		padding: 56px 16px 32px;
		padding-top: max(56px, env(safe-area-inset-top, 0px) + 40px);
	}

	.auth-back {
		top: max(12px, env(safe-area-inset-top, 0px) + 8px);
		left: 12px;
		right: auto;
	}

	.auth-title {
		font-size: clamp(26px, 8vw, 34px);
		margin-bottom: 28px;
	}

	.auth-form {
		gap: 18px;
	}

	.auth-input,
	.auth-submit {
		font-size: 16px; /* предотвращает зум iOS при фокусе */
	}

	.auth-verify-box {
		padding: 0 4px;
	}

	.auth-verify-text {
		font-size: 15px;
	}
}

@media (max-width: 380px) {
	.auth-box {
		max-width: 100%;
	}
}
