/* extracted from widgets.css: login/auth/widget micro-layout parity */
.widget_outlogin_wrap {
	display: inline-block;
	background-color: #ffffff !important;
	border-radius: 8px;
	padding: 20px;
	border: 1px solid #ededed;
	margin-bottom: 0 !important;
	width: 100%;
}

.widget_outlogin_wrap:after {
	content: none;
}

.widget_outlogin_wrap #btn_login {
	width: 150px;
	padding: 0 10px;
	margin: 0 auto;
	border: 0;
	background-color: #a66eff !important;
	border-color: #a66eff !important;
	color: #ffffff;
	cursor: pointer;
	transition: 0.2s ease;
	height: 45px;
	border-radius: 8px;
	font-size: 100%;
	font-weight: 400;
}

.login-header {
	font-weight: bold;
	margin-bottom: 20px;
	font-size: 15px;
	display: inline-block;
}

.login-info input {
	height: 45px !important;
	padding: 0 20px 0 40px !important;
	margin-bottom: 10px !important;
	border: 1px solid #ededed;
	border-radius: 8px !important;
	background-color: #fff !important;
}

.login-info input.required,
.login-info textarea.required {
	background-image: none !important;
}

.widget_outlogin_wrap .input-group {
	position: relative;
}

.widget_outlogin_wrap #outlogin_mb_id::-webkit-input-placeholder,
.widget_outlogin_wrap #outlogin_mb_password::-webkit-input-placeholder,
.widget_outlogin_wrap #outlogin_mb_id::-ms-input-placeholder,
.widget_outlogin_wrap #outlogin_mb_password::-ms-input-placeholder,
.widget_outlogin_wrap #outlogin_mb_id::placeholder,
.widget_outlogin_wrap #outlogin_mb_password::placeholder {
	color: #b2b2b2;
	opacity: 1;
}

.widget_outlogin_wrap .na-dot {
	display: inline-block;
	vertical-align: middle !important;
	margin: 0 2px;
}

.widget_outlogin_wrap .icon_user,
.widget_outlogin_wrap .icon_password {
	position: absolute;
	top: calc(50% - 5px);
	left: 18px;
	transform: translateY(-50%);
	background-repeat: no-repeat;
	background-position: center;
	z-index: 3;
	pointer-events: none;
}

.widget_outlogin_wrap .icon_user {
	background-image: url('/theme/BS4-Basic/img/legacy-theme-assets/icon_user.svg');
	background-size: contain;
	width: 13px;
	height: 15px;
}

.widget_outlogin_wrap .icon_password {
	background-image: url('/theme/BS4-Basic/img/legacy-theme-assets/icon_password.svg');
	background-size: contain;
	width: 14px;
	height: 19px;
}

.widget_outlogin_wrap .widget-profile-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	overflow: hidden;
	border-radius: 50%;
	background: #fff;
	flex: 0 0 60px;
}

.widget_outlogin_wrap .widget-profile-avatar img,
.widget_outlogin_wrap .rounded-circle {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50% !important;
}

.register-div {
	color: #b5b5b5;
	text-align: center;
}

.register-div a.regcls {
	color: #c49fff;
	margin-left: 5px;
	transition: 0.2s ease;
}

.register-div a.regcls:hover {
	color: #a66eff;
}

.fpassaction {
	transition: 0.2s ease;
	color: #b5b5b5;
}

.fpassaction:hover {
	color: #a66eff;
}

.telegram-login-block {
	width: 100%;
}

.tgme_widget_login.large button.tgme_widget_login_button {
	word-break: break-all;
	width: 230px;
	white-space: normal;
}

.telegram-login-container {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0px;
	border-radius: 20px;
	background: #ffffff;
	transition: transform 0.3s ease;
}

/* Custom styling for the iframe within the container */
.telegram-login-container iframe {
	border-radius: 15px !important;
	border: 2px solid #dcdcdc;
	max-width: 100%;
	width: 350px;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.telegram-login-container iframe button {
	white-space: normal;
}

.telegram-login-block-off {
	margin-top: 10px;
}

.telegram-login-off {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.telegram-login-off__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 42px;
	padding: 0 16px;
	border-radius: 999px;
	background: linear-gradient(180deg, #6bbcff 0%, #4ca6f6 100%);
	color: #ffffff;
	box-shadow: 0 12px 24px rgba(86, 159, 245, 0.22);
}

.telegram-login-off__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.telegram-login-off__icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

.telegram-login-off__label {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.telegram-login-off__message,
.telegram-login-off__hint {
	margin: 0;
	text-align: center;
	letter-spacing: -0.01em;
}

.telegram-login-off__message {
	font-size: 12px;
	line-height: 1.5;
	color: #6f6880;
}

.telegram-login-off__hint {
	margin-top: -4px;
	font-size: 11px;
	line-height: 1.4;
	color: #a79db8;
}

.sidebar-bannerimg {
	padding-top: 20px !important;
	margin-bottom: 0 !important;
}

.sidebar-bannerimg img {
	width: 100%;
}

.companies-widget-sec {
	background-color: #ffffff !important;
	border-radius: 8px;
	padding: 20px;
	border: 1px solid #ededed;
	margin-bottom: 0 !important;
}

.widget_outlogin_wrap.bg_gray_boxshadow_slope,
.companies-widget-sec.bg_gray_boxshadow_slope,
.latest-posts-widget-sec.bg_gray_boxshadow_slope,
.latest-posts-comments-widget-sec.bg_gray_boxshadow_slope {
	background-color: #ffffff !important;
	margin-bottom: 0 !important;
}

.box-header {
	font-weight: bold;
	margin-bottom: 20px;
	font-size: 15px;
	color: #303437;
	text-align: left;
	padding: 0;
}

.companies-widget-sec .wg_head_event {
	background: none;
}

.companies-widget-sec .wg_icon_event {
	background: none;
	color: #303437;
}

.companies-widget-sec .na-item:hover,
.widget_outlogin_wrap p.f-sm a:hover {
	color: #a66eff;
}

.companies-widget-sec div a.na-subject:hover {
	color: var(--new-btn-color) !important;
}

.companies-widget-sec .na-title .na-subject {
	font-weight: 400;
}

.latest-posts-widget-sec,
.latest-posts-comments-widget-sec {
	background-color: #ffffff;
	border-radius: 8px;
	padding: 20px;
	border: 1px solid #ededed;
	margin-bottom: 0;
	margin-top: 20px;
}

.latest-posts-widget-sec .wg_head_event,
.latest-posts-comments-widget-sec .wg_head_event {
	background: none;
}

.latest-posts-widget-sec .wg_icon_event,
.latest-posts-comments-widget-sec .wg_icon_event {
	background: none;
	color: #303437;
}

.latest-posts-widget-sec .na-title .na-subject,
.latest-posts-comments-widget-sec .na-title .na-subject {
	font-weight: 400;
}

.widget_outlogin_wrap .btn-group a {
	background-color: #a66eff !important;
	border-color: #a66eff !important;
}

input#outlogin_remember_me:focus {
	outline: none !important;
}

.widget_outlogin_wrap .custom-switch {
	padding-left: 35px;
}

.widget_outlogin_wrap .custom-switch .custom-control-label::before {
	background-color: lightgray;
	border: 0;
	width: 40px;
	height: 22px;
	border-radius: 22px !important;
	margin-top: 0 !important;
}

.widget_outlogin_wrap .custom-switch .custom-control-label::after {
	background-color: #fff;
	width: 16px !important;
	height: 16px !important;
	border-radius: 50% !important;
	top: 6px !important;
	margin-top: 0 !important;
	transition: left 0.15s;
	margin-left: 2px;
}

.widget_outlogin_wrap .custom-switch .custom-control-input:checked ~ .custom-control-label::after {
	left: -15px !important;
	transform: unset !important;
	transition: left 0.15s;
}

.widget_outlogin_wrap .custom-switch .custom-control-label span {
	display: inline-block;
	vertical-align: middle !important;
	font-size: 12px;
	color: #999;
	margin-top: 1px;
}

#sidebar-login .custom-switch {
	padding-left: 2.25rem;
}

#sidebar-login .custom-switch .custom-control-label::before {
	background-color: lightgray;
	border: 0;
	width: 40px;
	height: 22px;
	border-radius: 22px !important;
	margin-top: -2px !important;
}

#sidebar-login .custom-switch .custom-control-label::after {
	background-color: #fff;
	width: 16px !important;
	height: 16px !important;
	border-radius: 50% !important;
	top: 6px !important;
	margin-top: -2px !important;
	transition: left 0.15s;
	margin-left: 2px;
}

.widget_outlogin_wrap .custom-control-label,
#sidebar-login .custom-control-label {
	padding-left: 15px;
	cursor: pointer;
}

@media (min-width: 768px) and (max-width: 991px) {
	.widget_outlogin_wrap #btn_login {
		width: 125px;
	}
}

@media (min-width: 320px) and (max-width: 767px) {
	.custom-right-sidebar-maindiv {
		position: fixed;
		right: 0;
		z-index: 1000;
		height: 100%;
		top: 0;
		overflow: auto;
		width: 300px;
		background-color: #f8f9fa;
		padding: 10px;
		right: -100%;
	}

	.widget_outlogin_wrap {
		margin-bottom: 0 !important;
	}
}

@media (max-width: 575px) {
	.telegram-login-off {
		gap: 8px;
	}

	.telegram-login-off__button {
		min-height: 40px;
		padding: 0 14px;
	}

	.telegram-login-off__label {
		font-size: 13px;
	}

	.telegram-login-off__message {
		font-size: 11px;
		line-height: 1.45;
	}
}

@media (max-width: 767px) {
	.telegram-login-off__message,
	.telegram-login-off__hint {
		font-size: 12px;
		line-height: 1.5;
	}
}
