

/* Start:/local/templates/login/components/bitrix/system.auth.authorize/.default/style.css?175999000719200*/
/* Кастомный дизайн формы авторизации с неоновыми эффектами */

:root {
	/* Серая цветовая палитра */
	--bg-dark: #0a0e27;
	--bg-card: #1a1d35;
	--bg-input: #252945;
	--text-primary: #e0e0e0;
	--text-secondary: #a0a0a0;
	--text-light: #707070;
	--border-color: #2d3250;
	
	/* Неоновые цвета */
	--neon-blue: #00d9ff;
	--neon-purple: #a855f7;
	--neon-pink: #ec4899;
	--neon-cyan: #06b6d4;
	
	/* Основные цвета */
	--primary-red: #DC143C;
	--primary-red-hover: #ff1744;
	--accent-blue: #2563EB;
	
	/* Тени */
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
	
	/* Неоновые свечения */
	--glow-blue: 0 0 20px rgba(0, 217, 255, 0.5), 0 0 40px rgba(0, 217, 255, 0.3);
	--glow-purple: 0 0 20px rgba(168, 85, 247, 0.5), 0 0 40px rgba(168, 85, 247, 0.3);
	--glow-pink: 0 0 20px rgba(236, 72, 153, 0.5), 0 0 40px rgba(236, 72, 153, 0.3);
	--glow-red: 0 0 20px rgba(220, 20, 60, 0.5), 0 0 40px rgba(220, 20, 60, 0.3);
}

* {
	box-sizing: border-box;
}

/* Основной контейнер */
.custom-auth-wrapper {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-dark);
	background-image: 
		radial-gradient(ellipse at top, rgba(0, 217, 255, 0.05) 0%, transparent 50%),
		radial-gradient(ellipse at bottom, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
	padding: 20px;
	position: relative;
	overflow: hidden;
}

/* Анимированный фон */
.custom-auth-wrapper::before {
	content: '';
	position: absolute;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, var(--neon-blue) 0%, transparent 70%);
	opacity: 0.1;
	top: -250px;
	right: -250px;
	animation: float 20s ease-in-out infinite;
}

.custom-auth-wrapper::after {
	content: '';
	position: absolute;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
	opacity: 0.1;
	bottom: -200px;
	left: -200px;
	animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	25% { transform: translate(50px, 50px) rotate(90deg); }
	50% { transform: translate(0, 100px) rotate(180deg); }
	75% { transform: translate(-50px, 50px) rotate(270deg); }
}

.custom-auth-container {
	display: flex;
	width: 100%;
	max-width: 1100px;
	background: var(--bg-card);
	border-radius: 24px;
	box-shadow: var(--shadow-xl);
	overflow: hidden;
	min-height: 600px;
	position: relative;
	z-index: 1;
	border: 1px solid var(--border-color);
	transition: all 0.4s ease;
}

.custom-auth-container:hover {
	border-color: var(--neon-blue);
	box-shadow: 
		var(--shadow-xl),
		var(--glow-blue);
	transform: translateY(-5px);
}

/* Левая панель - Брендинг */
.custom-auth-brand {
	flex: 0 0 45%;
	background: linear-gradient(135deg, 
		rgba(0, 217, 255, 0.1) 0%, 
		rgba(168, 85, 247, 0.1) 50%,
		rgba(236, 72, 153, 0.1) 100%);
	padding: 60px 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	border-right: 1px solid var(--border-color);
}

.custom-auth-brand::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, var(--neon-blue) 0%, transparent 70%);
	opacity: 0.05;
	animation: pulse 15s ease-in-out infinite;
}

.custom-auth-brand::after {
	content: '';
	position: absolute;
	bottom: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
	opacity: 0.05;
	animation: pulse 20s ease-in-out infinite reverse;
}

@keyframes pulse {
	0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.05; }
	50% { transform: scale(1.2) rotate(180deg); opacity: 0.1; }
}

.custom-auth-brand-content {
	position: relative;
	z-index: 1;
	text-align: center;
	color: var(--text-primary);
}

.custom-auth-logo {
	margin-bottom: 40px;
	display: inline-block;
	animation: fadeInDown 1s ease-out;
	transition: all 0.4s ease;
	position: relative;
}

.custom-auth-logo:hover {
	transform: scale(1.05);
}

.custom-logo-text {
	font-size: 48px;
	font-weight: 700;
	background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
	letter-spacing: 2px;
	padding: 20px 30px;
	border: 3px solid transparent;
	border-radius: 16px;
	transition: all 0.4s ease;
	position: relative;
}

.custom-logo-text::before {
	content: '';
	position: absolute;
	inset: -3px;
	background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
	border-radius: 16px;
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: -1;
	filter: blur(10px);
    border-radius: 36%;
}

.custom-auth-logo:hover .custom-logo-text::before {
	opacity: 0.6;
}

.custom-auth-logo:hover .custom-logo-text {
	text-shadow: 
		0 0 10px var(--neon-blue),
		0 0 20px var(--neon-purple),
		0 0 30px var(--neon-pink);
}

.custom-auth-brand-title {
	font-size: 42px;
	font-weight: 700;
	margin: 0 0 16px 0;
	line-height: 1.2;
	animation: fadeInUp 1s ease-out 0.2s backwards;
	background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
}

.custom-auth-brand-subtitle {
	font-size: 18px;
	font-weight: 400;
	margin: 0;
	color: var(--text-secondary);
	animation: fadeInUp 1s ease-out 0.4s backwards;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Правая панель - Форма */
.custom-auth-form-panel {
	flex: 1;
	padding: 60px 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-card);
}

.custom-auth-form-wrapper {
	width: 100%;
	max-width: 400px;
	position: relative;
	min-height: 500px;
}

.custom-auth-header h2 {
	font-size: 28px;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0 0 8px 0;
	text-align: center;
	position: relative;
	display: inline-block;
	width: 100%;
}

.custom-auth-header h2::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
	border-radius: 2px;
	box-shadow: 0 0 10px var(--neon-blue);
}

.log-popup-form-input {
	position: absolute;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-30px);
	transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s;
}

.log-popup-form-input.--show {
	position: relative !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateX(0) !important;
	transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0s !important;
}

.log-popup-form-qr {
	position: absolute;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transform: translateX(30px);
	transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s;
}

.log-popup-form-qr.--show {
	position: relative !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateX(0) !important;
	transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0s !important;
}

/* Удаляем старые keyframes анимации, используем только transitions */

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Социальные сервисы */
.custom-socservice-wrapper {
	margin: 30px 0;
}

.custom-divider {
	display: flex;
	align-items: center;
	margin: 24px 0;
	color: var(--text-light);
	font-size: 14px;
}

.custom-divider::before,
.custom-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--border-color);
}

.custom-divider span {
	padding: 0 16px;
}

/* Форма */
.custom-auth-form {
	margin-top: 32px;
}

.custom-form-group {
	margin-bottom: 24px;
}

.custom-form-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 8px;
}

.custom-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.custom-input-icon {
	position: absolute;
	left: 16px;
	pointer-events: none;
	z-index: 1;
	transition: all 0.3s ease;
}

.custom-input-wrapper:hover .custom-input-icon path {
	fill: var(--neon-blue);
	filter: drop-shadow(0 0 5px var(--neon-blue));
}

.custom-input {
	width: 100%;
	padding: 14px 16px 14px 48px;
	font-size: 15px;
	font-weight: 500;
	color: var(--text-primary);
	background: var(--bg-input);
	border: 2px solid var(--border-color);
	border-radius: 12px;
	outline: none;
	transition: all 0.4s ease;
}

.custom-input::placeholder {
	color: var(--text-light);
}

.custom-input:hover {
	border-color: var(--neon-blue);
	box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.custom-input:focus {
	background: var(--bg-input);
	border-color: var(--neon-blue);
	box-shadow: var(--glow-blue);
}

.custom-input:focus + .custom-input-icon {
	filter: drop-shadow(0 0 8px var(--neon-blue));
}

/* Капча */
.custom-captcha {
	margin: 12px 0;
	border-radius: 8px;
	border: 2px solid var(--border-color);
}

/* Чекбокс и строка с забыли пароль */
.custom-form-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 12px;
}

.custom-checkbox-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
}

.custom-checkbox {
	width: 18px;
	height: 18px;
	border: 2px solid var(--border-color);
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	accent-color: var(--primary-red);
}

.custom-checkbox:checked {
	background: var(--primary-red);
	border-color: var(--primary-red);
}

.custom-checkbox-label {
	font-size: 14px;
	color: var(--text-secondary);
	cursor: pointer;
	user-select: none;
	transition: all 0.3s ease;
}

.custom-checkbox-wrapper:hover .custom-checkbox-label {
	color: var(--text-primary);
}

.custom-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--neon-blue);
	text-decoration: none;
	transition: all 0.3s ease;
	position: relative;
}

.custom-link::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
	transition: width 0.3s ease;
	box-shadow: 0 0 8px var(--neon-blue);
}

.custom-link:hover {
	color: var(--neon-purple);
	text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.custom-link:hover::after {
	width: 100%;
}

.custom-link-forgot {
	white-space: nowrap;
}

/* Кнопки */
.custom-btn {
	width: 100%;
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	position: relative;
	overflow: hidden;
}

.custom-btn-primary {
	background: linear-gradient(135deg, var(--primary-red) 0%, #FF1744 100%);
	color: white;
	box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
	border: 2px solid transparent;
	position: relative;
	overflow: hidden;
}

.custom-btn-primary::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	transform: translate(-50%, -50%);
	transition: width 0.6s ease, height 0.6s ease;
}

.custom-btn-primary:hover::before {
	width: 300px;
	height: 300px;
}

.custom-btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: var(--glow-red);
	border-color: var(--primary-red-hover);
}

.custom-btn-primary:active {
	transform: translateY(-1px);
}

.custom-btn-secondary {
	background: var(--bg-input);
	color: var(--text-primary);
	border: 2px solid var(--border-color);
	transition: all 0.4s ease;
}

.custom-btn-secondary:hover {
	background: var(--bg-card);
	border-color: var(--neon-purple);
	color: var(--text-primary);
	box-shadow: var(--glow-purple);
	transform: translateY(-2px);
}

.custom-btn-loader {
	display: none;
	animation: spin 1s linear infinite;
}

.custom-btn.loading .custom-btn-loader {
	display: block;
}

.custom-btn.loading .custom-btn-text {
	opacity: 0.7;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Ссылка на регистрацию */
.custom-register-link {
	text-align: center;
	margin-top: 24px;
	font-size: 14px;
	color: var(--text-secondary);
}

.custom-register-link span {
	margin-right: 8px;
	color: var(--text-light);
}

/* QR код */
.custom-qr-toggle {
	margin-top: 24px;
	text-align: center;
}

.custom-btn-qr {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--neon-cyan);
	background: var(--bg-input);
	border: 2px solid var(--border-color);
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.4s ease;
	position: relative;
	overflow: hidden;
}

.custom-btn-qr::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
	opacity: 0;
	transition: opacity 0.4s ease;
}

.custom-btn-qr span,
.custom-btn-qr svg {
	position: relative;
	z-index: 1;
}

.custom-btn-qr:hover {
	border-color: var(--neon-cyan);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.custom-btn-qr:hover::before {
	opacity: 1;
}

.custom-qr-header {
	text-align: center;
	margin-bottom: 32px;
	animation: fadeInDown 0.5s ease-out 0.2s backwards;
}

.custom-qr-header h3 {
	font-size: 24px;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0 0 8px 0;
}

.custom-qr-header p {
	font-size: 14px;
	color: var(--text-secondary);
	margin: 0;
}

.custom-qr-code {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	background: var(--bg-input);
	border: 2px solid var(--border-color);
	border-radius: 16px;
	margin-bottom: 24px;
	position: relative;
	min-height: 284px;
	transition: all 0.4s ease;
	animation: fadeInUp 0.5s ease-out 0.3s backwards;
}

.custom-qr-code:hover {
	border-color: var(--neon-cyan);
	box-shadow: 0 0 25px rgba(6, 182, 212, 0.3);
	transform: scale(1.02);
}

.custom-qr-image {
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.4s ease;
}

.custom-qr-loader {
	display: none;
	position: absolute;
	width: 40px;
	height: 40px;
	border: 4px solid var(--border-color);
	border-top-color: var(--neon-cyan);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	z-index: 10;
}

.custom-qr-code.--loading .custom-qr-loader {
	display: block;
}

.custom-qr-code.--loading .custom-qr-image {
	opacity: 0.3;
	filter: blur(2px);
}

.custom-qr-code.--success::after {
	content: '✓';
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
	color: white;
	font-size: 32px;
	font-weight: bold;
	border-radius: 50%;
	box-shadow: 0 0 30px rgba(6, 182, 212, 0.6);
	animation: scaleIn 0.3s ease-out;
	z-index: 10;
}

@keyframes scaleIn {
	from {
		transform: scale(0);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

/* Дополнительный неоновый эффект для дивов */
.custom-form-group {
	position: relative;
}

.custom-form-group::before {
	content: '';
	position: absolute;
	inset: -2px;
	background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
	border-radius: 25%;
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: -1;
	filter: blur(10px);
}

.custom-form-group:hover::before {
	opacity: 0.3;
}

/* Адаптивность */
@media (max-width: 1024px) {
	.custom-auth-brand {
		flex: 0 0 40%;
		padding: 40px 30px;
	}

	.custom-auth-brand-title {
		font-size: 36px;
	}

	.custom-auth-form-panel {
		padding: 40px 30px;
	}
}

@media (max-width: 768px) {
	.custom-auth-wrapper {
		padding: 0;
		background: var(--bg-dark);
	}

	.custom-auth-container {
		flex-direction: column;
		border-radius: 0;
		min-height: 100vh;
	}

	.custom-auth-brand {
		flex: 0 0 auto;
		padding: 50px 30px;
		min-height: auto;
		border-right: none;
		border-bottom: 1px solid var(--border-color);
	}

	.custom-auth-brand-title {
		font-size: 32px;
	}

	.custom-auth-brand-subtitle {
		font-size: 16px;
	}

	.custom-auth-form-panel {
		padding: 40px 30px;
	}

	.custom-form-row {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 480px) {
	.custom-auth-brand {
		padding: 40px 20px;
	}

	.custom-auth-brand-title {
		font-size: 28px;
	}

	.custom-auth-form-panel {
		padding: 30px 20px;
	}

	.custom-auth-header h2 {
		font-size: 24px;
	}

	.custom-input {
		padding: 12px 12px 12px 44px;
	}

	.custom-btn {
		padding: 12px 20px;
		font-size: 15px;
	}
}

/* Сообщения об ошибках */
.errortext,
.notetext {
	padding: 14px 18px;
	border-radius: 12px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.5;
	border: 2px solid;
	transition: all 0.3s ease;
}

.errortext {
	background: rgba(220, 38, 38, 0.1);
	color: #ff6b6b;
	border-color: rgba(220, 38, 38, 0.3);
}

.errortext:hover {
	border-color: #DC2626;
	box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
}

.notetext {
	background: rgba(37, 99, 235, 0.1);
	color: var(--neon-blue);
	border-color: rgba(37, 99, 235, 0.3);
}

.notetext:hover {
	border-color: var(--accent-blue);
	box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

/* Дополнительные стили для формы восстановления пароля */
.custom-form-info {
	margin-bottom: 24px;
	padding: 16px;
	background: rgba(0, 217, 255, 0.05);
	border-left: 3px solid var(--neon-blue);
	border-radius: 8px;
}

.custom-form-info p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-secondary);
}

.custom-form-or {
	text-align: center;
	color: var(--text-light);
	font-size: 14px;
	margin-top: 12px;
	margin-bottom: -12px;
}

/* Улучшения для старых браузеров */
.login-item {
	margin-bottom: 16px;
}

.login-inp {
	width: 100%;
	padding: 14px 16px 14px 48px;
	font-size: 15px;
	border: 2px solid var(--border-color);
	border-radius: 12px;
	outline: none;
	transition: all 0.3s ease;
}

.login-inp:focus {
	border-color: var(--primary-red);
	box-shadow: 0 0 0 4px var(--primary-red-light);
}

.login-btn {
	width: 100%;
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 600;
	background: var(--primary-red);
	color: white;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.login-btn:hover {
	background: var(--primary-red-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(220, 20, 60, 0.4);
}

.login-btn.wait {
	opacity: 0.7;
	pointer-events: none;
}


/* End */
/* /local/templates/login/components/bitrix/system.auth.authorize/.default/style.css?175999000719200 */
