/* ============================================
   СТРАНИЦА АВТОРИЗАЦИИ - ТЕМНЫЙ ДИЗАЙН С ВЫБОРОМ
   ============================================ */

:root {
	/* Цветовая палитра - темная */
	--primary: #667eea;
	--primary-dark: #5568d3;
	--primary-light: #818cf8;
	--secondary: #764ba2;
	--accent: #f093fb;
	--success: #10b981;
	--warning: #f59e0b;
	--error: #ef4444;
	
	/* Фон - очень темный */
	--bg-primary: #050510;
	--bg-secondary: #0a0a15;
	--bg-tertiary: #0f0f1a;
	--bg-card: rgba(15, 15, 26, 0.85);
	--bg-card-hover: rgba(20, 20, 35, 0.9);
	--bg-card-dark: rgba(10, 10, 20, 0.95);
	
	/* Текст */
	--text-primary: #ffffff;
	--text-secondary: #a0a0b8;
	--text-muted: #5a5a70;
	
	/* Границы и тени */
	--border: rgba(255, 255, 255, 0.06);
	--border-hover: rgba(102, 126, 234, 0.3);
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
	--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
	--shadow-glow: 0 0 40px rgba(102, 126, 234, 0.2);
	
	/* Радиусы */
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 24px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body.login-page {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background: var(--bg-primary);
	color: var(--text-primary);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Анимированный фон - темный */
.login-background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	overflow: hidden;
	background: 
		radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
		radial-gradient(circle at 40% 20%, rgba(240, 147, 251, 0.05) 0%, transparent 50%),
		linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.login-background::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: 
		linear-gradient(rgba(102, 126, 234, 0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(102, 126, 234, 0.02) 1px, transparent 1px);
	background-size: 50px 50px;
	animation: gridMove 20s linear infinite;
	opacity: 0.3;
}

@keyframes gridMove {
	0% {
		transform: translate(0, 0);
	}
	100% {
		transform: translate(50px, 50px);
	}
}

/* Градиентные орбы - более темные */
.gradient-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(120px);
	opacity: 0.3;
	animation: orbFloat 30s ease-in-out infinite;
}

.orb-1 {
	width: 800px;
	height: 800px;
	background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
	top: -400px;
	left: -400px;
	animation-delay: 0s;
}

.orb-2 {
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
	bottom: -300px;
	right: -300px;
	animation-delay: 10s;
}

.orb-3 {
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	animation-delay: 20s;
}

@keyframes orbFloat {
	0%, 100% {
		transform: translate(0, 0) scale(1);
		opacity: 0.3;
	}
	33% {
		transform: translate(60px, -60px) scale(1.2);
		opacity: 0.4;
	}
	66% {
		transform: translate(-40px, 40px) scale(0.9);
		opacity: 0.25;
	}
}

/* Декоративные иконки - более прозрачные */
.bg-icon {
	position: absolute;
	color: rgba(102, 126, 234, 0.04);
	font-size: 120px;
	z-index: 0;
	animation: iconDrift 40s ease-in-out infinite;
	pointer-events: none;
	filter: blur(2px);
}

.bg-icon i {
	display: block;
}

.bg-icon-1 { top: 8%; left: 5%; animation-delay: 0s; }
.bg-icon-2 { top: 15%; right: 8%; animation-delay: 4s; font-size: 90px; }
.bg-icon-3 { bottom: 12%; left: 10%; animation-delay: 8s; font-size: 100px; }
.bg-icon-4 { bottom: 20%; right: 5%; animation-delay: 12s; font-size: 130px; }
.bg-icon-5 { top: 45%; left: 2%; animation-delay: 16s; font-size: 80px; transform: rotate(-20deg); }
.bg-icon-6 { top: 55%; right: 3%; animation-delay: 20s; font-size: 95px; transform: rotate(25deg); }
.bg-icon-7 { top: 25%; left: 50%; animation-delay: 24s; font-size: 110px; transform: rotate(15deg); }
.bg-icon-8 { bottom: 35%; left: 50%; animation-delay: 28s; font-size: 70px; transform: rotate(-30deg); }
.bg-icon-9 { top: 3%; left: 50%; animation-delay: 32s; font-size: 125px; transform: rotate(20deg); }
.bg-icon-10 { bottom: 3%; right: 50%; animation-delay: 36s; font-size: 65px; transform: rotate(-15deg); }

@keyframes iconDrift {
	0%, 100% {
		transform: translate(0, 0) rotate(0deg);
		opacity: 0.2;
	}
	25% {
		transform: translate(30px, -40px) rotate(10deg);
		opacity: 0.3;
	}
	50% {
		transform: translate(-25px, 30px) rotate(-10deg);
		opacity: 0.25;
	}
	75% {
		transform: translate(40px, 20px) rotate(8deg);
		opacity: 0.3;
	}
}

/* Контейнер авторизации */
.login-container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1200px;
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
}

/* Контейнер выбора способа авторизации */
.auth-methods-container {
	width: 100%;
	max-width: 1000px;
	animation: fadeIn 0.6s ease-out;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.auth-methods-header {
	text-align: center;
	margin-bottom: 48px;
}

.auth-methods-logo {
	width: 100px;
	height: 100px;
	margin: 0 auto 24px;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	border-radius: var(--radius-xl);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	box-shadow: 
		0 20px 60px rgba(102, 126, 234, 0.3),
		0 0 0 1px rgba(255, 255, 255, 0.1) inset;
	animation: logoPulse 3s ease-in-out infinite;
}

.auth-methods-logo i {
	font-size: 56px;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes logoPulse {
	0%, 100% {
		box-shadow: 
			0 20px 60px rgba(102, 126, 234, 0.3),
			0 0 0 1px rgba(255, 255, 255, 0.1) inset;
		transform: scale(1);
	}
	50% {
		box-shadow: 
			0 25px 80px rgba(102, 126, 234, 0.5),
			0 0 0 1px rgba(255, 255, 255, 0.15) inset;
		transform: scale(1.05);
	}
}

.auth-methods-title {
	font-size: 42px;
	font-weight: 800;
	margin-bottom: 12px;
	background: linear-gradient(135deg, #ffffff, var(--primary-light));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	letter-spacing: -1px;
}

.auth-methods-subtitle {
	font-size: 18px;
	color: var(--text-secondary);
	font-weight: 400;
	letter-spacing: 0.3px;
}

/* Обертка карточек */
.auth-cards-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 32px;
	margin-top: 32px;
}

/* Карточка авторизации */
.auth-card {
	background: var(--bg-card-dark);
	backdrop-filter: blur(30px);
	-webkit-backdrop-filter: blur(30px);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	padding: 48px;
	text-align: center;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	cursor: pointer;
}

.auth-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
	background-size: 200% 100%;
	animation: gradientMove 3s linear infinite;
	opacity: 0.6;
}

.auth-card::after {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(102, 126, 234, 0.08), transparent 70%);
	pointer-events: none;
	animation: rotateGlow 25s linear infinite;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.auth-card:hover::after {
	opacity: 1;
}

.auth-card:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: 
		0 16px 64px rgba(0, 0, 0, 0.8),
		var(--shadow-glow),
		0 0 0 1px rgba(255, 255, 255, 0.08) inset;
	border-color: var(--border-hover);
	background: var(--bg-card-hover);
}

@keyframes gradientMove {
	0% {
		background-position: 0% 50%;
	}
	100% {
		background-position: 200% 50%;
	}
}

@keyframes rotateGlow {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* Иконка карточки */
.auth-card-icon {
	width: 100px;
	height: 100px;
	margin: 0 auto 32px;
	border-radius: var(--radius-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: transform 0.4s ease;
}

.auth-card-telegram .auth-card-icon {
	background: linear-gradient(135deg, rgba(0, 136, 204, 0.2), rgba(102, 126, 234, 0.2));
	border: 1px solid rgba(0, 136, 204, 0.3);
}

.auth-card-standard .auth-card-icon {
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
	border: 1px solid rgba(102, 126, 234, 0.3);
}

.auth-card:hover .auth-card-icon {
	transform: scale(1.1) rotate(5deg);
}

.auth-card-icon i {
	font-size: 56px;
	color: var(--primary-light);
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.auth-card-telegram .auth-card-icon i {
	color: #0088cc;
}

/* Заголовок и описание карточки */
.auth-card-title {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 16px;
	color: var(--text-primary);
	letter-spacing: -0.5px;
}

.auth-card-description {
	font-size: 16px;
	color: var(--text-secondary);
	margin-bottom: 32px;
	line-height: 1.6;
	letter-spacing: 0.2px;
}

/* Кнопка карточки */
.auth-card-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px 32px;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	border: none;
	border-radius: var(--radius-md);
	color: white;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
	letter-spacing: 0.3px;
}

.auth-card-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
	background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}

.auth-card-button i {
	font-size: 18px;
	transition: transform 0.3s ease;
}

.auth-card-button:hover i {
	transform: translateX(4px);
}

/* Telegram виджет в карточке */
.telegram-widget-container {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}

.telegram-widget-container iframe {
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s ease;
}

.telegram-widget-container iframe:hover {
	transform: scale(1.05);
}

/* Карточка формы входа */
.login-card {
	background: var(--bg-card-dark);
	backdrop-filter: blur(30px);
	-webkit-backdrop-filter: blur(30px);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	padding: 56px;
	box-shadow: 
		var(--shadow-lg),
		0 0 0 1px rgba(255, 255, 255, 0.05) inset;
	animation: cardSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
	transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
	position: relative;
	overflow: hidden;
	max-width: 480px;
	width: 100%;
}

.login-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
	background-size: 200% 100%;
	animation: gradientMove 3s linear infinite;
	opacity: 0.6;
}

.login-card::after {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(102, 126, 234, 0.08), transparent 70%);
	pointer-events: none;
	animation: rotateGlow 25s linear infinite;
}

.login-card:hover {
	transform: translateY(-5px);
	box-shadow: 
		0 12px 48px rgba(0, 0, 0, 0.8),
		var(--shadow-glow),
		0 0 0 1px rgba(255, 255, 255, 0.08) inset;
	border-color: var(--border-hover);
	background: var(--bg-card-hover);
}

@keyframes cardSlideUp {
	from {
		opacity: 0;
		transform: translateY(50px) scale(0.92);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Кнопка назад */
.back-button {
	position: absolute;
	top: 24px;
	left: 24px;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	color: var(--text-secondary);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 10;
}

.back-button:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--border-hover);
	color: var(--text-primary);
	transform: translateX(-4px);
}

.back-button i {
	font-size: 20px;
}

/* Заголовок */
.login-header {
	text-align: center;
	margin-bottom: 40px;
	position: relative;
}

.login-logo {
	width: 80px;
	height: 80px;
	margin: 0 auto 28px;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	border-radius: var(--radius-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	box-shadow: 
		0 12px 40px rgba(102, 126, 234, 0.3),
		0 0 0 1px rgba(255, 255, 255, 0.1) inset;
	animation: logoPulse 3s ease-in-out infinite;
	position: relative;
	overflow: hidden;
}

.login-logo::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.25), transparent);
	animation: shine 4s infinite;
}

.login-logo svg,
.login-logo i {
	width: 40px;
	height: 40px;
	font-size: 40px;
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes shine {
	0% {
		transform: translateX(-100%) translateY(-100%) rotate(45deg);
	}
	100% {
		transform: translateX(100%) translateY(100%) rotate(45deg);
	}
}

.login-title {
	font-size: 36px;
	font-weight: 800;
	margin-bottom: 12px;
	background: linear-gradient(135deg, #ffffff, var(--primary-light));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	letter-spacing: -0.8px;
}

.login-subtitle {
	font-size: 17px;
	color: var(--text-secondary);
	font-weight: 400;
	margin-bottom: 20px;
	letter-spacing: 0.3px;
}

.login-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 20px;
	background: rgba(102, 126, 234, 0.15);
	border: 1px solid rgba(102, 126, 234, 0.3);
	border-radius: 30px;
	font-size: 14px;
	color: var(--primary-light);
	font-weight: 600;
	margin-top: 12px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	animation: badgePulse 4s ease-in-out infinite;
	box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.login-badge i {
	font-size: 18px;
}

@keyframes badgePulse {
	0%, 100% {
		box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
		transform: scale(1);
	}
	50% {
		box-shadow: 0 6px 24px rgba(102, 126, 234, 0.3);
		transform: scale(1.03);
	}
}

/* Сообщения */
.login-messages {
	margin-bottom: 32px;
}

.login-messages .alert {
	border-radius: var(--radius-md);
	border: none;
	padding: 16px 20px;
	font-size: 15px;
	animation: slideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: var(--shadow-md);
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Форма */
.login-form {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.form-label {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	font-weight: 600;
	color: var(--text-primary);
	letter-spacing: 0.3px;
}

.form-label i {
	font-size: 20px;
	color: var(--primary);
}

.form-control {
	width: 100%;
	padding: 16px 20px;
	background: rgba(255, 255, 255, 0.03);
	border: 1.5px solid var(--border);
	border-radius: var(--radius-md);
	color: var(--text-primary);
	font-size: 16px;
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	outline: none;
	font-weight: 400;
}

.form-control:focus {
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--primary);
	box-shadow: 
		0 0 0 4px rgba(102, 126, 234, 0.15),
		var(--shadow-sm);
	transform: translateY(-2px);
}

.form-control::placeholder {
	color: var(--text-muted);
	opacity: 0.5;
}

/* Пароль с кнопкой показа */
.password-input-wrapper {
	position: relative;
}

.password-toggle {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--text-secondary);
	cursor: pointer;
	padding: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	border-radius: var(--radius-sm);
	z-index: 2;
}

.password-toggle:hover {
	color: var(--text-primary);
	background: rgba(255, 255, 255, 0.08);
	transform: translateY(-50%) scale(1.15);
}

.password-toggle:active {
	transform: translateY(-50%) scale(0.95);
}

.password-toggle i {
	font-size: 22px;
}

/* Чекбокс */
.form-check {
	flex-direction: row;
	align-items: center;
	gap: 12px;
}

.form-check-input {
	width: 22px;
	height: 22px;
	cursor: pointer;
	accent-color: var(--primary);
	transition: transform 0.3s ease;
}

.form-check-input:hover {
	transform: scale(1.15);
}

.form-check-label {
	cursor: pointer;
	font-size: 15px;
	color: var(--text-secondary);
	user-select: none;
	transition: color 0.3s ease;
}

.form-check-label:hover {
	color: var(--text-primary);
}

/* Кнопка входа */
.btn-login {
	width: 100%;
	padding: 18px;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	border: none;
	border-radius: var(--radius-md);
	color: white;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	position: relative;
	overflow: hidden;
	margin-top: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	letter-spacing: 0.5px;
	box-shadow: 
		0 8px 24px rgba(102, 126, 234, 0.3),
		0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn-login::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	transition: width 0.7s, height 0.7s;
}

.btn-login:hover::before {
	width: 500px;
	height: 500px;
}

.btn-login i {
	font-size: 22px;
	transition: transform 0.4s ease;
	position: relative;
	z-index: 1;
}

.btn-login:hover:not(:disabled) i {
	transform: translateX(4px);
}

.btn-login:hover:not(:disabled) {
	background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
	transform: translateY(-4px);
	box-shadow: 
		0 12px 36px rgba(102, 126, 234, 0.4),
		var(--shadow-glow),
		0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.btn-login:active:not(:disabled) {
	transform: translateY(-2px);
}

.btn-login:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.btn-loader {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
}

.spinner {
	width: 22px;
	height: 22px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: white;
	border-radius: 50%;
	animation: spin 0.9s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Стили для 2FA */
.totp-input-wrapper {
	position: relative;
	display: flex;
	justify-content: center;
	max-width: 320px;
	margin: 0 auto;
}

.totp-input {
	font-family: 'Courier New', monospace;
	font-size: 36px;
	text-align: center;
	letter-spacing: 20px;
	font-weight: 700;
	padding: 20px 70px 20px 20px;
	width: 100%;
	background: rgba(255, 255, 255, 0.04);
	border: 2px solid var(--border);
	border-radius: var(--radius-lg);
	color: var(--text-primary);
	transition: all 0.3s ease;
}

.totp-input:focus {
	border-color: var(--primary);
	box-shadow: 
		0 0 0 4px rgba(102, 126, 234, 0.15),
		var(--shadow-sm);
	background: rgba(255, 255, 255, 0.08);
}

.code-timer {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.25));
	border: 2px solid rgba(245, 158, 11, 0.5);
	border-radius: 50%;
	color: var(--warning);
	font-size: 16px;
	font-weight: 700;
	box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
	animation: pulse-timer 1.3s infinite;
	z-index: 10;
	font-family: 'Courier New', monospace;
}

@keyframes pulse-timer {
	0%, 100% {
		transform: translateY(-50%) scale(1);
		box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
	}
	50% {
		transform: translateY(-50%) scale(1.15);
		box-shadow: 0 8px 28px rgba(245, 158, 11, 0.6);
	}
}

.form-hint {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
	margin-top: 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
	text-align: center;
}

.form-hint i {
	font-size: 18px;
	color: var(--primary-light);
}

/* Адаптивность */
@media (max-width: 768px) {
	.auth-cards-wrapper {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	
	.auth-card {
		padding: 40px 32px;
	}
	
	.auth-card-icon {
		width: 80px;
		height: 80px;
	}
	
	.auth-card-icon i {
		font-size: 48px;
	}
	
	.auth-card-title {
		font-size: 24px;
	}
}

@media (max-width: 640px) {
	.login-container {
		padding: 16px;
	}
	
	.login-card {
		padding: 40px 32px;
		border-radius: var(--radius-lg);
	}
	
	.login-title {
		font-size: 28px;
	}
	
	.login-logo {
		width: 72px;
		height: 72px;
	}

	.bg-icon {
		font-size: 80px;
		opacity: 0.03;
	}

	.auth-methods-logo {
		width: 80px;
		height: 80px;
	}
	
	.auth-methods-logo i {
		font-size: 48px;
	}
	
	.auth-methods-title {
		font-size: 32px;
	}
	
	.auth-methods-subtitle {
		font-size: 16px;
	}
}

/* Оптимизация производительности */
.login-page * {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.login-card,
.form-control,
.btn-login,
.auth-card {
	will-change: transform;
}

/* Улучшенные алерты */
.alert-success {
	background: rgba(16, 185, 129, 0.12);
	border-left: 4px solid var(--success);
	color: var(--success);
}

.alert-danger {
	background: rgba(239, 68, 68, 0.12);
	border-left: 4px solid var(--error);
	color: var(--error);
}

.alert-warning {
	background: rgba(245, 158, 11, 0.12);
	border-left: 4px solid var(--warning);
	color: var(--warning);
}

.alert-info {
	background: rgba(102, 126, 234, 0.12);
	border-left: 4px solid var(--primary);
	color: var(--primary-light);
}
