/* Стили для модалки авторизации */

#modal-auth #phone-recaptcha {
	min-height: 78px;
	margin-bottom: 8px;
}

.modal-auth__field-hint {
	font-size: 13px;
	color: var(--gray-color, #666);
	margin: 0 0 8px 0;
	line-height: 1.4;
	font-weight: 400;
}

.modal-auth__field-hint strong {
	font-weight: 500;
}

#modal-auth .modal__content {
	max-width: 500px;
}

/* Согласие с политикой при регистрации */
.modal-auth__consent {
	margin-bottom: 4px;
}

.modal-auth__consent-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.45;
	font-weight: 400;
	color: var(--text-color, #333);
}

.modal-auth__consent-label input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.modal-auth__consent-text a {
	color: var(--accent-color);
	text-decoration: underline;
	font-weight: 400;
}

.modal-auth__consent-text a:hover {
	text-decoration: none;
}

#modal-auth .modal__action-button {
	width: 100%;
	background: var(--accent-color);
	color: var(--white-color);
}

/* Табы авторизации */
.modal-auth__tabs {
	display: flex;
	border-bottom: 1px solid #e0e0e0;
	margin-bottom: 20px;
}

.modal-auth__tab {
	flex: 1;
	padding: 12px 20px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	font-size: 16px;
	color: #666;
	transition: all 0.3s;
}

.modal-auth__tab:hover {
	color: var(--accent-color);
}

.modal-auth__tab.active {
	color: var(--accent-color);
	border-bottom-color: var(--accent-color);
	font-weight: 500;
}

/* Контент табов */
.modal-auth__content {
	display: none;
}

.modal-auth__content.active {
	display: block;
}

/* Ошибки */
.modal__form-info {
	color: #e74c3c;
	font-size: 14px;
	margin-top: 5px;
	display: none;
}

#modal-auth .modal__form-info--success {
	color: var(--accent-color);
	font-weight: 400;
	font-size: 14px;
	margin-top: 0;
	margin-bottom: 0;
}

.modal__form-info:not(:empty) {
	display: block;
}

/* OAuth кнопки */
.modal__actions-block {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

.modal__actions {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

.modal__action-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 15px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s;
	flex: 1;
	justify-content: center;
}

.modal__action-link:hover {
	border-color: var(--accent-color);
	background: #f9f9f9;
}

.modal__action-icon {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

/* Строка ссылок под формой email: фиксированный порядок, без «перемешивания» от flex формы */
#modal-auth form.modal__inputs {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
}

#modal-auth .modal__actions-text--links {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	column-gap: 10px;
	row-gap: 6px;
	text-align: center;
}

#modal-auth .modal__actions-text--links .modal__actions-text-sep {
	opacity: 0.45;
	user-select: none;
	pointer-events: none;
}

#modal-auth .modal__actions-text-label {
	color: inherit;
	opacity: 0.92;
}

/* Текстовые ссылки в модалке: акцент и наведение */
#modal-auth .modal__actions-text a {
	color: var(--accent-color);
	font-weight: 400;
	text-decoration: none;
	transition: all 0.2s ease;
	border-bottom: 1px solid transparent;
}

#modal-auth .modal__actions-text a:hover {
	transform: translateY(-1px);
	border-bottom: 1px solid var(--accent-color);
}

#modal-auth .modal__actions-text a:focus-visible {
	outline: 2px solid var(--accent-color);
	outline-offset: 3px;
	border-radius: 2px;
}

.modal-auth__resend {
	margin-top: 12px;
	text-align: center;
}

.modal-auth__resend-btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: 100%;
	padding: 10px 16px 12px;
	box-sizing: border-box;
	border-radius: 100px;
	border: 1px solid var(--accent-color);
	background: transparent;
	color: var(--accent-color);
	font: inherit;
	font-size: 0.875em;
	font-weight: 400;
	line-height: normal;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.modal-auth__resend-btn:hover:not(:disabled) {
	background: var(--highlight-color);
}

.modal-auth__resend-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

