

/* Start:/local/templates/grand-bar_mkhdev/components/bitrix/system.auth.authorize/flat/style.css?17930120898565*/
/* =========================================================
   GRAND BAR: форма входа — по коду из SMS и по паролю
   ========================================================= */
body:has(.gb-login) h1 {
	font-size: 28px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em;
}

.gb-login {
	display: flex;
	justify-content: center;
	margin: 4px 0 32px;
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #1d1d1b;
}

.gb-login__card {
	width: 100%;
	max-width: 440px;
	padding: 28px 30px;
	border: 1px solid #eceef1;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
	box-sizing: border-box;
}

.gb-login__title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.gb-login__sub {
	margin: 4px 0 20px;
	font-size: 14px;
	color: #6b7280;
}

/* сообщения об ошибке */
.gb-login__message .errortext,
.gb-login__message .notetext {
	display: block;
	margin-bottom: 16px;
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.5;
}

.gb-login__message .errortext {
	border-left: 4px solid #dc2626;
	background: #fef2f2;
	color: #991b1b;
}

.gb-login__message .notetext {
	border-left: 4px solid #16a34a;
	background: #f0fdf4;
	color: #166534;
}

/* поля */
.gb-login__field {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
}

.gb-login__label {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.gb-login__label-login,
.gb-login__form.is-login-mode .gb-login__label-phone {
	display: none;
}

.gb-login__form.is-login-mode .gb-login__label-login {
	display: inline;
}

.gb-login__input {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #f9fafb;
	font-family: inherit;
	font-size: 16px;
	color: #1d1d1b;
	box-shadow: none;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.gb-login__input:focus {
	border-color: #F9A91D;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(249, 169, 29, 0.18);
	outline: none;
}

.gb-login__input:-webkit-autofill,
.gb-login__input:-webkit-autofill:hover,
.gb-login__input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px #f9fafb inset !important;
	-webkit-text-fill-color: #1d1d1b !important;
	transition: background-color 9999s ease-out 0s;
}

/* пароль с кнопкой «показать» */
.gb-login__pass {
	position: relative;
}

.gb-login__pass .gb-login__input {
	padding-right: 48px;
}

.gb-login__eye {
	position: absolute;
	top: 50%;
	right: 7px;
	width: 34px;
	height: 34px;
	margin-top: -17px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
	cursor: pointer;
}

.gb-login__eye:hover {
	background-color: #f3f4f6;
}

.gb-login__eye.is-on {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F9A91D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94'/%3E%3Cpath d='M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19'/%3E%3Cpath d='M1 1l22 22'/%3E%3C/svg%3E");
}

/* капча (только после нескольких неудачных попыток) */
.gb-login__captcha {
	display: block;
	width: 180px;
	height: 40px;
	margin-bottom: 4px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}

/* запомнить меня */
.gb-login__remember {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 2px 0 18px;
	font-size: 14px;
	color: #4b5563;
	cursor: pointer;
}

.gb-login__remember input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #F9A91D;
}

/* кнопка */
.gb-login__submit {
	width: 100%;
	height: 52px;
	border: none;
	border-radius: 999px;
	background: #F9A91D;
	color: #1d1d1b;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(249, 169, 29, 0.35);
	transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.gb-login__submit:hover {
	background: #e09005;
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(249, 169, 29, 0.45);
}

/* ссылки под кнопкой */
.gb-login__links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
}

.gb-login__forgot {
	font-size: 14px;
	font-weight: 600;
	color: #128c4a !important;
	text-decoration: none !important;
	border-bottom: 1px dashed #25d366;
}

.gb-login__mode {
	padding: 0;
	border: none;
	background: none;
	font-family: inherit;
	font-size: 13px;
	color: #9ca3af;
	cursor: pointer;
	text-decoration: underline;
}

.gb-login__mode:hover {
	color: #4b5563;
}

.gb-login__mode-to-phone,
.gb-login__form.is-login-mode .gb-login__mode-to-login {
	display: none;
}

.gb-login__form.is-login-mode .gb-login__mode-to-phone {
	display: inline;
}

/* регистрация */
.gb-login__register {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid #f1f2f4;
	font-size: 14px;
	color: #6b7280;
	text-align: center;
}

.gb-login__register a {
	margin-left: 4px;
	font-weight: 700;
	color: #1d1d1b;
	text-decoration: none;
	border-bottom: 2px solid #F9A91D;
}

.gb-login__register a:hover {
	color: #e09005;
}

/* значок шифрования пароля (системный) */
div.bx-auth span.bx-auth-secure {
	position: absolute;
	right: 48px;
	bottom: 13px;
}

div.bx-auth div.bx-auth-secure-icon {
	width: 19px;
	height: 18px;
	background: url(/bitrix/components/bitrix/system.auth.authorize/templates/.default/images/sec.png) no-repeat center;
}

/* ---------- вкладки: SMS / пароль ---------- */
.gb-login__tabs {
	display: flex;
	gap: 4px;
	margin: 16px 0 18px;
	padding: 4px;
	border-radius: 999px;
	background: #f3f4f6;
}

.gb-login__tab {
	flex: 1 1 50%;
	height: 38px;
	padding: 0 10px;
	border: none;
	border-radius: 999px;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #6b7280;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.gb-login[data-mode="sms"] .gb-login__tab[data-tab="sms"],
.gb-login[data-mode="pass"] .gb-login__tab[data-tab="pass"] {
	background: #ffffff;
	color: #1d1d1b;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.gb-login[data-mode="sms"] .gb-pass,
.gb-login[data-mode="pass"] .gb-sms {
	display: none;
}

/* ---------- вход по SMS ---------- */
.gb-sms__step {
	display: none;
}

.gb-sms[data-step="phone"] .gb-sms__step--phone,
.gb-sms[data-step="code"] .gb-sms__step--code,
.gb-sms[data-step="name"] .gb-sms__step--name {
	display: block;
}

.gb-sms__alert {
	margin-bottom: 16px;
	padding: 10px 14px;
	border-left: 4px solid #dc2626;
	border-radius: 12px;
	background: #fef2f2;
	font-size: 14px;
	line-height: 1.5;
	color: #991b1b;
}

.gb-sms__alert.is-ok {
	border-left-color: #16a34a;
	background: #f0fdf4;
	color: #166534;
}

.gb-sms__code {
	font-size: 24px !important;
	font-weight: 700;
	letter-spacing: 0.5em;
	text-align: center;
}

.gb-sms__hint {
	margin-top: 14px;
	font-size: 13px;
	line-height: 1.5;
	color: #6b7280;
	text-align: center;
}

.gb-sms__row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 14px;
}

.gb-sms__link {
	padding: 0;
	border: none;
	background: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #1d1d1b;
	cursor: pointer;
	text-decoration: none;
	border-bottom: 1px dashed #F9A91D;
}

.gb-sms__link:disabled {
	color: #9ca3af;
	border-bottom-color: transparent;
	cursor: default;
}

/* ловушка для ботов — людям не видна */
.gb-sms__trap {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

.gb-login__submit:disabled,
.gb-login__submit.is-busy {
	opacity: 0.6;
	cursor: wait;
	transform: none;
	box-shadow: none;
}

@media (max-width: 575px) {
	body:has(.gb-login) h1 {
		font-size: 22px !important;
	}

	.gb-login__card {
		padding: 22px 18px;
		border-radius: 16px;
	}
}

/* End */
/* /local/templates/grand-bar_mkhdev/components/bitrix/system.auth.authorize/flat/style.css?17930120898565 */
