.auth-page-container {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-height: 100vh;
	padding-top: 12px;
	padding-bottom: 12px;
}

@media (min-width: 768px) {
	.auth-page-container {
		align-items: center;
		padding-top: 24px;
		padding-bottom: 24px;
	}
}

.auth-box {
	width: 100%;
	max-width: 450px;
	margin: 0 auto;
}

.auth-register-email-hint {
	white-space: nowrap;
	font-size: 12px;
	line-height: 1.25;
}

.auth-phone-input::placeholder {
	color: #b8b8b8;
	opacity: 1;
}

.auth-phone-input:focus::placeholder {
	color: transparent;
	opacity: 0;
}

.auth-sponsor-input[readonly] {
	background-color: #eeeeee;
	border-color: #d8d8d8;
	color: #55545a;
	opacity: 1;
	cursor: default;
}

#auth_tabs {
	align-items: stretch;
}

#auth_tabs .nav-item {
	display: flex;
	align-items: stretch;
}

#auth_tabs .nav-link {
	display: flex;
	align-items: center;
	height: 100%;
	color: #6f6f6f;
	font-size: 1rem;
	transition: color .15s ease, font-size .15s ease, background-color .15s ease, border-color .15s ease;
}

#auth_tabs .nav-link:hover,
#auth_tabs .nav-link:focus {
	color: #333333;
	border-color: transparent;
}

#auth_tabs .nav-link.active:hover,
#auth_tabs .nav-link.active:focus {
	border-color: #dddddd #dddddd #f6f6f6;
}

#auth_tabs .nav-link.active {
	color: #444444;
	background: #f6f6f6;
	border-color: #dddddd #dddddd #f6f6f6;
	font-size: 1.2rem;
	font-weight: 600;
}

.auth-privacy-check {
	display: flex;
	align-items: center;
	gap: 7px;
	padding-left: 0;
	color: #9a9a9a;
	font-size: 12px;
	line-height: 1.25;
}

.auth-privacy-check .form-check-label,
.auth-privacy-check a {
	margin: 0;
	color: #9a9a9a;
	line-height: 1.25;
}

.auth-privacy-check .form-check-label {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0 4px;
}

.auth-privacy-check-intro {
	display: inline;
}

.auth-privacy-check .form-check-input {
	flex: 0 0 auto;
	float: none;
	margin-top: 0;
	margin-left: 0;
	border-color: #d0d0d0;
	opacity: 0.75;
}

.auth-privacy-check .form-check-input:checked {
	background-color: #bdbdbd;
	border-color: #bdbdbd;
}

@media (min-width: 768px) {
	.auth-privacy-check .form-check-label {
		white-space: nowrap;
	}
}

@media (max-width: 767.98px) {
	.auth-privacy-check .form-check-label {
		display: block;
	}

	.auth-privacy-check a {
		display: block;
	}
}

@media (max-width: 374.98px) {
	.auth-register-email-hint {
		font-size: 11px;
	}
}


.js-auth-recaptcha {
    display: flex;
    justify-content: center;
}

.auth-recaptcha-v2-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}


/*========================================================================================*/
/* Поля пароля с кнопкой-глазом */

.input-group:has(.form-control:focus) {
	border-radius: var(--bs-border-radius);
	box-shadow: 0 0 0 .15rem #f2f2f2;
}

.input-group:has(.form-control:focus) .form-control,
.input-group:has(.form-control:focus) .toggle-password {
	box-shadow: none;
}

.input-group:has(.form-control:focus) .toggle-password {
	position: relative;
	z-index: 6;
	border-color: var(--bs-border-color);
}

.input-group .toggle-password {
	position: relative;
	z-index: 1;
}

.input-group .toggle-password:focus,
.input-group .toggle-password:active {
	box-shadow: none;
}

/*========================================================================================*/
/* Активные входы в настройках аккаунта */

.login-tokens-toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.login-tokens-panel {
	margin-top: 14px;
}

.login-tokens-actions-bar {
	display: flex;
	justify-content: flex-start;
	margin-bottom: 12px;
}

.login-tokens-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.login-token-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	max-width: 100%;
	padding: 12px 14px;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	background: #fff;
}

.login-token-item:has(.login-token-current-badge) {
	border-color: #f1c9d3;
	box-shadow: 0 0 0 3px rgba(255, 246, 248, 0.9);
}

.login-token-main {
	min-width: 0;
	flex: 1 1 auto;
}

.login-token-title-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 7px;
}

.login-token-device {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	font-weight: 600;
	color: #212529;
}

.login-token-device span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.login-token-device i {
	flex: 0 0 auto;
	font-size: 18px;
	line-height: 1;
	color: #495057;
}

.login-token-current-badge {
	flex: 0 0 auto;
	font-weight: 500;
}

.login-token-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 13px;
	color: #495057;
}

.login-token-summary div {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
	max-width: 100%;
}

.login-token-summary i {
	flex: 0 0 auto;
	color: #868e96;
	font-size: 14px;
	line-height: 1;
}

.login-token-summary span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.login-token-location {
	font-weight: 500;
	color: #343a40;
}

.login-token-separator {
	margin: 0 4px;
	color: #adb5bd;
}

.login-token-actions {
	flex: 0 0 auto;
}

@media (max-width: 575.98px) {
	.login-tokens-toggle,
	.login-tokens-actions-bar,
	.login-tokens-actions-bar .btn {
		width: 100%;
	}

	.login-tokens-toggle {
		justify-content: center;
	}

	.login-token-item {
		flex-direction: column;
		gap: 10px;
	}

	.login-token-title-row {
		align-items: flex-start;
		flex-direction: column;
	}

	.login-token-summary {
		flex-direction: column;
		gap: 5px;
		width: 100%;
	}

	.login-token-actions,
	.login-token-actions .btn,
	#delete_other_login_tokens_btn {
		width: 100%;
	}
}
/*========================================================================================*/
/* Сортировка списка часовых поясов в настройках */

.settings-timezone-sort {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.settings-timezone-sort-label {
	font-size: 13px;
	color: #6c757d;
}

.settings-timezone-sort .btn {
	border-radius: 999px;
	font-size: 12px;
	line-height: 1.2;
}

.settings-timezone-sort .btn.is-active {
	box-shadow: 0 4px 12px rgba(176, 74, 99, .14);
}

/*========================================================================================*/
/* Модальные окна настроек отдельных страниц */

.page-settings-modal .modal-content {
	overflow: hidden;
	border: 0;
	border-radius: 12px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, .20);
}

.page-settings-modal .modal-header {
	align-items: flex-start;
	padding: 16px 20px;
	border-bottom: 1px solid #eeeeee;
	background: #ffffff;
}

.page-settings-modal .btn-close {
	/* Кнопку закрытия в модалках настроек страниц делаем такой же, как в модалках /dashboard. */
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 2;
	padding: .25em .25em;
	border: 2px solid #000;
	border-radius: 999px;
	box-shadow: none !important;
	scale: 1.3;
}

.page-settings-modal .modal-body {
	padding: 18px 20px;
}

.page-settings-modal .modal-footer {
	padding: 14px 20px;
	border-top: 1px solid #eeeeee;
	background: #fafafa;
}

.page-settings-modal-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.page-settings-modal-footer .alert {
	align-self: stretch;
	width: 100%;
	margin-bottom: 0;
}

.page-settings-modal-footer-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.page-settings-switch-list {
	display: grid;
	justify-items: start;
	gap: 10px;
}

.page-settings-switch {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid #d6dce2;
	border-radius: 999px;
	background: #f1f3f5;
	cursor: pointer;
	user-select: none;
}

.page-settings-switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.page-settings-switch-slider {
	position: relative;
	flex: 0 0 auto;
	width: 42px;
	height: 24px;
	border-radius: 999px;
	background: #e1e1e1;
	transition: background-color .15s ease-out;
}

.page-settings-switch-slider::before {
	content: '';
	position: absolute;
	left: 3px;
	top: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
	transition: transform .15s ease-out;
}

.page-settings-switch input:checked + .page-settings-switch-slider {
	background: #b04a63;
}

.page-settings-switch input:checked + .page-settings-switch-slider::before {
	transform: translateX(18px);
}

.page-settings-switch-text {
	min-width: 62px;
	color: #222;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.dashboard-sound-switch-list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
}

.dashboard-sound-switch-list .page-settings-switch {
	flex: 0 0 auto;
}

.dashboard-sound-switch-list .page-settings-switch-text {
	min-width: 0;
}

.page-settings-section {
	margin-bottom: 22px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eeeeee;
}

.page-settings-section-title {
	margin-bottom: 6px;
	font-size: 16px;
	font-weight: 700;
}

@media (max-width: 767.98px) {
	.page-settings-modal .modal-dialog {
		width: calc(100% - 16px);
		max-width: calc(100% - 16px);
		margin-right: auto;
		margin-left: auto;
	}

	.page-settings-modal .modal-content {
		border-radius: 10px;
	}

	.page-settings-modal .modal-header,
	.page-settings-modal .modal-body,
	.page-settings-modal .modal-footer {
		padding-right: 14px;
		padding-left: 14px;
	}
}


/*========================================================================================*/
/* PWA и уведомления на странице настроек */

.pwa-settings-controls {
	display: grid;
	justify-items: start;
	gap: 12px;
}


.pwa-settings-timepicker-wrap {
	max-width: 220px;
}


/*========================================================================================*/
/* Канал связи по умолчанию в настройках dashboard */

.dashboard-default-channel-settings {
	display: grid;
	justify-items: start;
	gap: 10px;
}

.dashboard-default-channel-switch {
	margin-bottom: 0;
}

.dashboard-default-channel-picker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	transition: opacity .15s ease-out;
}

.dashboard-default-channel-picker.is-disabled {
	opacity: .45;
	pointer-events: none;
}

.dashboard-default-channel-picker .client-modal-channel-icon {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	max-width: 42px;
	max-height: 42px;
	margin: 0;
}

.auth-page-title {
    color: #2f2f35;
    font-size: 26px;
    font-weight: 500;
}

.auth-email-code-heading {
	color: #333333;
}

.auth-email-code-text {
	margin-top: 6px;
	font-size: 14px;
	line-height: 1.35;
	color: #666666;
}

.auth-email-code-input {
	text-align: center;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 8px;
}

/* /settings: на компьютере кнопка контактных данных без дополнительного верхнего отступа. */
@media (min-width: 768px) {
	.settings-contact-submit-wrap {
		margin-top: 0 !important;
	}
}
