* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Rubik', sans-serif;
	min-height: 100vh;
	background: rgb(249, 250, 251);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.auth-container {
	position: relative;
	width: 100%;
	max-width: 440px;
	z-index: 1;
}

.auth-error {
	background-color: #fee;
	border: 1px solid #f5c6cb;
	color: #721c24;
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 14px;
	text-align: center;
}

.auth-background {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
	overflow: hidden;
	border-radius: 20px;
}

.auth-shapes {
	position: relative;
	width: 100%;
	height: 100%;
}

.shape {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
}

.shape-1 {
	width: 80px;
	height: 80px;
	top: -20px;
	right: -20px;
	animation: float 6s ease-in-out infinite;
}

.shape-2 {
	width: 60px;
	height: 60px;
	bottom: 30px;
	left: -30px;
	animation: float 4s ease-in-out infinite reverse;
}

.shape-3 {
	width: 40px;
	height: 40px;
	bottom: -20px;
	right: 30%;
	animation: float 5s ease-in-out infinite 1s;
}

@keyframes float {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-20px) rotate(180deg); }
}

.auth-card {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	border-radius: 20px;
	padding: 40px;
	box-shadow:
			0 20px 40px rgba(0, 0, 0, 0.1),
			0 0 0 1px rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-header {
	text-align: center;
	margin-bottom: 32px;
}

.auth-logo {
	width: 60px;
	height: 60px;
	margin: 0 auto 16px;
	background: linear-gradient(135deg, #4361ee, #3a0ca3);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}

.auth-title {
	font-size: 28px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 8px;
	background: linear-gradient(135deg, #4361ee, #3a0ca3);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.auth-subtitle {
	font-size: 16px;
	color: #666;
	font-weight: 400;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-label {
	font-size: 14px;
	font-weight: 500;
	color: #333;
	margin-left: 4px;
}

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

.input-icon {
	position: absolute;
	left: 16px;
	color: #666;
	z-index: 1;
	transition: color 0.3s ease;
}

.form-input {
	width: 100%;
	padding: 16px 16px 16px 48px;
	border: 2px solid #e1e5e9;
	border-radius: 12px;
	font-size: 16px;
	font-family: inherit;
	background: #fff;
	transition: all 0.3s ease;
	outline: none;
}

.form-input:focus {
	border-color: #4361ee;
	background: #f8f9ff;
	box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-input:focus + .input-icon {
	color: #4361ee;
}

.form-input::placeholder {
	color: #999;
}

.auth-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 16px 24px;
	background: linear-gradient(135deg, #4361ee, #3a0ca3);
	color: white;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 8px;
	position: relative;
	overflow: hidden;
}

.auth-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	transition: left 0.5s;
}

.auth-button:hover::before {
	left: 100%;
}

.auth-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 25px rgba(67, 97, 238, 0.3);
}

.auth-button:active {
	transform: translateY(0);
}

.button-text {
	font-weight: 500;
}

.button-icon {
	transition: transform 0.3s ease;
}

.auth-button:hover .button-icon {
	transform: translateX(4px);
}

.auth-footer {
	margin-top: 32px;
	text-align: center;
	padding-top: 24px;
	border-top: 1px solid #e1e5e9;
}

.footer-text {
	font-size: 12px;
	color: #999;
}

/* Адаптивность */
@media (max-width: 480px) {
	.auth-container {
		max-width: 100%;
	}
	
	.auth-card {
		padding: 32px 24px;
	}
	
	.auth-title {
		font-size: 24px;
	}
	
	.auth-subtitle {
		font-size: 14px;
	}
}

/* Анимация появления */
.auth-card {
	animation: slideUp 0.6s ease-out;
}

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