:root {
	--brand-color: #72151b;
	--brand-hover: #561014;
	--bg-page: #f4f6f9;
	--text-main: #333333;
	--text-muted: #666666;
}

body {
	font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	background: var(--bg-page);
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

/* Общая обертка для центрирования логотипа и формы */
.auth-wrapper {
	width: 100%;
	max-width: 380px;
	padding: 20px;
	box-sizing: border-box;
}

/* Контейнер логотипа */
.auth-logo-box {
	text-align: center;
	margin-bottom: 25px;
}
.auth-logo {
	max-width: 240px; /* Аккуратно масштабируем исходные 362px, чтобы не перегружать экран */
	height: auto;
}

/* Основная карточка */
.auth-container {
	background: #ffffff;
	padding: 40px 30px 30px 30px;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
	position: relative; /* Для позиционирования переключателя языков */
}

/* Стильное переключение языков */
.lang-switcher {
	position: absolute;
	top: 15px;
	right: 20px;
	display: flex;
	gap: 8px;
}
.lang-switcher a {
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
	color: #999999;
	padding: 2px 6px;
	border-radius: 4px;
	transition: all 0.2s ease;
}
.lang-switcher a:hover {
	color: var(--brand-color);
	background: #f8f9fa;
}
.lang-switcher a.active {
	color: #ffffff;
	background: var(--brand-color);
}

/* Элементы формы */
h2 {
	margin: 10px 0 20px 0;
	color: var(--text-main);
	font-size: 20px;
	text-align: center;
	font-weight: 700;
}
.step-desc {
	font-size: 14px;
	color: var(--text-muted);
	text-align: center;
	line-height: 1.5;
	margin-bottom: 20px;
}
.form-group {
	margin-bottom: 20px;
}
label {
	display: block;
	margin-bottom: 8px;
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 600;
}
input[type="email"] {
	width: 100%;
	padding: 12px;
	border: 1px solid #dcdcdc;
	border-radius: 6px;
	box-sizing: border-box;
	font-size: 15px;
	transition: border-color 0.2s;
}
input[type="email"]:focus {
	border-color: var(--brand-color);
	outline: none;
	box-shadow: 0 0 0 3px rgba(114, 21, 27, 0.1);
}

/* Специфический инпут для крупного ПИН-кода */
.pin-input {
	width: 100%;
	padding: 12px;
	border: 2px solid #dcdcdc;
	border-radius: 6px;
	box-sizing: border-box;
	font-size: 26px;
	letter-spacing: 12px;
	text-align: center;
	text-indent: 12px; /* Компенсируем letter-spacing справа, чтобы код был ровно по центру */
	font-weight: bold;
	color: var(--brand-color);
	transition: all 0.2s;
}
.pin-input:focus {
	border-color: var(--brand-color);
	outline: none;
	background: #fffcfc;
}

/* Кнопка отправки */
.btn-submit {
	width: 100%;
	padding: 14px;
	background: var(--brand-color);
	border: none;
	border-radius: 6px;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}
.btn-submit:hover {
	background: var(--brand-hover);
}

/* Ссылки и алерты */
.links {
	margin-top: 20px;
	text-align: center;
}
.link-cancel {
	font-size: 13px;
	color: var(--text-muted);
	text-decoration: none;
	transition: color 0.2s;
}
.link-cancel:hover {
	color: var(--brand-color);
	text-decoration: underline;
}

.alert {
	padding: 12px;
	border-radius: 6px;
	font-size: 14px;
	margin-bottom: 20px;
	text-align: left;
	line-height: 1.4;
}
.alert-error {
	background: #fff5f5;
	color: #cc2d2d;
	border: 1px solid #fccfcf;
}