/* lh-auth.css — экраны входа и регистрации (Ева, 15.09.2026, задача Ксении).
 *
 * Дополняет lh-kit.css. Палитра — та же, что в оболочке кабинета
 * (решение Георгия через Марка, 12.09.2026): бренд — зелёный legalhelp.pw,
 * оранжевый кита оставлен сигналом ошибки. Роли цвета объявлены здесь
 * отдельно от `.lh-shell`, потому что до входа оболочки ещё нет.
 *
 * Принцип экрана: одна центральная колонка, одно главное действие. Кнопка
 * входа — единственная заливка на странице; ВКонтакте — вторичная рамка;
 * «Восстановить пароль» и «Зарегистрироваться» — ссылки, а не заголовки.
 */

.lh-auth {
	--ui-brand: #43A388;
	--ui-brand-strong: #1D9E75;
	--ui-text: #07251A;
	--ui-muted: #5C6F66;
	--ui-line: #E2EDE8;
	--ui-surface: #F4FDF9;
	--ui-danger: #B42318;
	--ui-danger-soft: #FEF3F2;

	min-height: 100vh;
	margin: 0;
	display: flex;
	flex-direction: column;
	font-family: 'Inter Tight', 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.3;
	color: var(--ui-text);
	background: var(--ui-surface);
	-webkit-font-smoothing: antialiased;
}
.lh-auth *, .lh-auth *::before, .lh-auth *::after { box-sizing: border-box; }

/* Шапка: логотип и переход на соседний экран — больше на этой странице
   делать нечего, поэтому меню кабинета здесь нет. */
.lh-auth-top {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 1040px;
	width: 100%;
	margin: 0 auto;
	padding: 20px;
}
.lh-auth-logo {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	font-size: 19px;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--ui-text);
	text-decoration: none;
}
.lh-auth-logo:hover { color: var(--ui-text); text-decoration: none; }
.lh-auth-logo b { font-weight: 500; color: var(--ui-brand); }
.lh-auth-top-link {
	margin-left: auto;
	font-size: 15px;
	font-weight: 500;
	color: var(--ui-brand);
	text-decoration: none;
}
.lh-auth-top-link:hover { color: var(--ui-brand-strong); text-decoration: underline; }

/* Колонка */
.lh-auth-wrap {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 24px 20px 64px;
}
.lh-auth-col { width: 100%; max-width: 440px; }

.lh-auth-head { margin-bottom: 20px; text-align: center; }
.lh-auth-head h1 {
	margin: 0;
	font-size: 30px;
	line-height: 1.15;
	font-weight: 500;
	letter-spacing: -0.015em;
}
.lh-auth-head p {
	margin: 8px auto 0;
	max-width: 30em;
	font-size: 16px;
	line-height: 1.35;
	color: var(--ui-muted);
	/* без balance длинный подзаголовок регистрации роняет одно слово на
	   вторую строку; браузеры без поддержки просто переносят как раньше */
	text-wrap: balance;
}

.lh-auth-card {
	background: #fff;
	border: 1px solid var(--ui-line);
	border-radius: 14px;
	padding: 28px 28px 24px;
	box-shadow: 0 1px 2px rgba(7, 37, 26, .04), 0 8px 24px rgba(7, 37, 26, .05);
}

/* Поля */
.lh-auth-field + .lh-auth-field { margin-top: 18px; }
.lh-auth-field label.lh-auth-label {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
	font-weight: 500;
	color: var(--ui-text);
}
.lh-auth-field .lh-input {
	width: 100%;
	height: 52px;
	padding: 0 14px;
	font-family: inherit;
	font-size: 16px; /* меньше 16px — iOS зумит страницу на фокусе */
	line-height: 1.2;
	color: var(--ui-text);
	background: #fff;
	border: 1.5px solid #CBDCD4;
	border-radius: 10px;
	outline: none;
	transition: border-color .14s ease, box-shadow .14s ease;
	-webkit-appearance: none;
	appearance: none;
}
.lh-auth-field .lh-input::placeholder { color: #93A79E; }
.lh-auth-field .lh-input:focus {
	border-color: var(--ui-brand);
	box-shadow: 0 0 0 3px rgba(67, 163, 136, .18);
}
.lh-auth-field .lh-input.is-bad { border-color: var(--ui-danger); }
.lh-auth-hint { margin: 7px 0 0; font-size: 13px; line-height: 1.35; color: var(--ui-muted); }
.lh-auth-err { margin: 7px 0 0; font-size: 13px; line-height: 1.35; color: var(--ui-danger); }

/* Общая ошибка формы */
.lh-auth-alert {
	margin-bottom: 20px;
	padding: 12px 14px;
	border: 1px solid #F2C7C2;
	border-left: 3px solid var(--ui-danger);
	border-radius: 10px;
	background: var(--ui-danger-soft);
	color: #7A2019;
	font-size: 14px;
	line-height: 1.4;
}
.lh-auth-alert p { margin: 0; }
.lh-auth-alert p + p { margin-top: 4px; }

/* Согласие */
.lh-auth-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-top: 20px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ui-muted);
}
.lh-auth-check input {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	flex: none;
	accent-color: var(--ui-brand);
}
.lh-auth-check a { color: var(--ui-brand); text-decoration: underline; }
.lh-auth-check a:hover { color: var(--ui-brand-strong); }

/* Кнопки: заливка ровно одна на экран */
.lh-auth-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	height: 52px;
	padding: 0 20px;
	border: 1.5px solid transparent;
	border-radius: 10px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.lh-auth-btn:focus-visible { outline: 3px solid rgba(67, 163, 136, .45); outline-offset: 2px; }
.lh-auth-btn--main {
	margin-top: 24px;
	background: var(--ui-brand);
	border-color: var(--ui-brand);
	color: #fff;
}
.lh-auth-btn--main:hover { background: var(--ui-brand-strong); border-color: var(--ui-brand-strong); color: #fff; }
.lh-auth-btn--vk {
	background: #fff;
	border-color: #D6E4DE;
	color: var(--ui-text);
}
.lh-auth-btn--vk:hover { border-color: var(--ui-text); color: var(--ui-text); text-decoration: none; }
.lh-auth-btn--vk svg { width: 20px; height: 20px; flex: none; }

/* Разделитель «или» */
.lh-auth-or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0 16px;
	font-size: 13px;
	color: var(--ui-muted);
}
.lh-auth-or::before,
.lh-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--ui-line); }

/* Ссылки под карточкой */
.lh-auth-links {
	margin-top: 20px;
	text-align: center;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ui-muted);
}
.lh-auth-links a { color: var(--ui-brand); text-decoration: none; }
.lh-auth-links a:hover { color: var(--ui-brand-strong); text-decoration: underline; }
.lh-auth-links p { margin: 0; }
.lh-auth-links p + p { margin-top: 8px; }

.lh-auth-aside {
	margin-top: 24px;
	text-align: center;
	font-size: 14px;
	line-height: 1.45;
	color: var(--ui-muted);
}
.lh-auth-aside a { color: var(--ui-muted); text-decoration: underline; }
.lh-auth-aside a:hover { color: var(--ui-text); }

/* Телефон 390px: карточка без рамки и теней — на узком экране они только
   съедают ширину. */
@media (max-width: 560px) {
	.lh-auth-wrap { padding: 8px 16px 48px; }
	.lh-auth-head h1 { font-size: 25px; }
	.lh-auth-head p { font-size: 15px; }
	.lh-auth-card {
		padding: 22px 18px 20px;
		border-radius: 12px;
		box-shadow: none;
	}
	.lh-auth-top { padding: 16px; }
}
