/**
 * Оформление страницы входа, кнопки Яндекс ID и подсказок полей регистрации.
 *
 * Токены из design-system/MASTER.md: синий #2787F5, красный #EF3124,
 * текст #142B45, вторичный #5F6D7E, границы #E5E9EE, плашки #F3F5F7,
 * радиус кнопки 12 px, высота от 48 px. Изолировано атрибутом data-akb-auth,
 * чтобы не задевать остальной сайт.
 *
 * Канонический файл: catalog/view/theme/revolution/stylesheet/akb_auth.css
 * Подключён последним из header.tpl.
 */

/* --- Страница входа --------------------------------------------------- */

#content .akb-auth {
	max-width: 460px;
	margin: 0 auto;
}

#content .akb-auth-card {
	background: #fff;
	border: 1px solid #E5E9EE;
	border-radius: 16px;
	padding: 28px 28px 24px;
}

#content .akb-auth-title {
	margin: 0 0 4px;
	font-size: 22px;
	line-height: 30px;
	font-weight: 700;
	color: #142B45;
}

#content .akb-auth-subtitle {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 20px;
	color: #5F6D7E;
}

#content .akb-auth-label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	line-height: 18px;
	font-weight: 500;
	color: #142B45;
}

#content .akb-auth-field {
	margin-bottom: 16px;
}

#content .akb-auth-input {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	font-size: 15px;
	color: #142B45;
	background: #fff;
	border: 1px solid #E5E9EE;
	border-radius: 12px;
	outline: none;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

#content .akb-auth-input::placeholder {
	color: #9AA5B1;
}

#content .akb-auth-input:hover {
	border-color: #CBD3DC;
}

#content .akb-auth-input:focus {
	border-color: #2787F5;
	box-shadow: 0 0 0 3px rgba(39, 135, 245, .16);
}

#content .akb-auth-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 0 20px;
}

#content .akb-auth-forgot {
	font-size: 14px;
	color: #2787F5;
	text-decoration: none;
}

#content .akb-auth-forgot:hover {
	text-decoration: underline;
}

#content .akb-auth-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	font-size: 15px;
	font-weight: 500;
	color: #fff;
	background: #2787F5;
	border: 0;
	border-radius: 12px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease;
}

#content .akb-auth-btn:hover {
	background: #1B76E0;
	color: #fff;
	text-decoration: none;
}

#content .akb-auth-btn:focus-visible {
	outline: 2px solid #142B45;
	outline-offset: 2px;
}

#content .akb-auth-btn-block {
	width: 100%;
}

#content .akb-auth-btn-secondary {
	min-height: 44px;
	color: #142B45;
	background: #F3F5F7;
}

#content .akb-auth-btn-secondary:hover {
	background: #E5E9EE;
	color: #142B45;
}

/* --- Кнопка Яндекс ID ------------------------------------------------- */

#content .akb-auth-yandex,
.akb-auth-yandex {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 0 20px;
	font-size: 15px;
	font-weight: 500;
	color: #142B45;
	background: #FFE44F;
	border: 0;
	border-radius: 12px;
	text-decoration: none;
	cursor: pointer;
	transition: filter .15s ease;
}

#content .akb-auth-yandex:hover,
.akb-auth-yandex:hover {
	filter: brightness(.94);
	color: #142B45;
	text-decoration: none;
}

.akb-auth-yandex-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-right: 10px;
}

#content .akb-auth-divider {
	position: relative;
	margin: 22px 0 18px;
	text-align: center;
}

#content .akb-auth-divider::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1px;
	background: #E5E9EE;
}

#content .akb-auth-divider span {
	position: relative;
	display: inline-block;
	padding: 0 12px;
	font-size: 13px;
	color: #5F6D7E;
	background: #fff;
}

#content .akb-auth-alt {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid #E5E9EE;
	text-align: center;
}

#content .akb-auth-alt p {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 20px;
	color: #5F6D7E;
}

/* --- Сообщения -------------------------------------------------------- */

#content .akb-auth-alert {
	margin-bottom: 18px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 20px;
	border-radius: 8px;
}

#content .akb-auth-alert-error {
	color: #B32215;
	background: #FDECEA;
	border: 1px solid #F6CFC9;
}

#content .akb-auth-alert-success {
	color: #14702F;
	background: #EAF7ED;
	border: 1px solid #C6E7D1;
}

/* --- Подсказки полей регистрации -------------------------------------- */

[data-akb-auth] .akb-field-hint {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	line-height: 16px;
	color: #5F6D7E;
}

[data-akb-auth] .akb-field-hint-error {
	color: #EF3124;
}

@media (max-width: 767px) {
	#content .akb-auth {
		max-width: 100%;
	}

	#content .akb-auth-card {
		padding: 20px 16px;
	}

	#content .akb-auth-title {
		font-size: 19px;
		line-height: 26px;
	}

	#content .akb-auth-btn-block {
		width: 100%;
	}
}
