:root {
	--bg-primary: #282828;
	--bg-secondary: #333333;
	--bg-tertiary: #404040;
	--text-primary: #ffffff;
	--text-secondary: #e0e0e0;
	--text-muted: #cccccc;
	--accent-primary: #ff8336;
	--accent-dark: #e6742f;
}

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

body {
	font-family: 'Poppins', sans-serif;
	background: var(--bg-primary);
	color: var(--text-primary);
	min-height: 100vh;
	overflow-x: hidden;
}

#vanta-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

.main-login {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	position: relative;
	z-index: 1;
}

.div-form {
	width: 100%;
	max-width: 420px;
}

.card {
	background: var(--bg-secondary);
	backdrop-filter: blur(15px);
	border-radius: 20px;
	box-shadow: rgba(0, 0, 0, 0.5) 0 15px 35px, rgba(255, 131, 54, 0.1) 0 0 0 1px;
	padding: 40px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	position: relative;
	overflow: hidden;
}

.card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
	opacity: 0.6;
}

#newlog {
	margin-bottom: 40px;
}

#newlog h1 {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--text-primary);
	text-shadow: 0 0 20px rgba(255, 131, 54, 0.3);
	position: relative;
	display: inline-block;
	animation: glow 3s ease-in-out infinite;
}

#newlog h1::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, var(--accent-primary), var(--accent-dark));
	border-radius: 2px;
}

.text-center h4 {
	color: var(--text-muted);
	font-size: 1rem;
	margin-bottom: 30px;
	font-weight: 300;
}

.control-group {
	position: relative;
	margin-bottom: 25px;
}

.form-control {
	background: var(--bg-tertiary);
	border: 2px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	color: var(--text-primary);
	padding: 15px 20px 15px 50px;
	font-size: 1rem;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
	width: 100%;
}

.form-control:focus {
	background: var(--bg-tertiary);
	border-color: var(--accent-primary);
	box-shadow: 0 0 0 3px rgba(255, 131, 54, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
	color: var(--text-primary);
	transform: translateY(-1px);
	outline: none;
}

.form-control::placeholder {
	color: var(--text-muted);
	opacity: 0.8;
}

.icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	font-size: 1.1rem;
	z-index: 2;
	transition: color 0.3s ease;
}

.control-group:focus-within .icon {
	color: var(--accent-primary);
}

.toggle-password {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	cursor: pointer;
	font-size: 1.1rem;
	z-index: 2;
	transition: color 0.3s ease;
	user-select: none;
}

.toggle-password:hover,
.control-group:focus-within .toggle-password {
	color: var(--accent-primary);
}

.btn-primary {
	background: linear-gradient(135deg, var(--accent-primary), var(--accent-dark));
	border: none;
	border-radius: 12px;
	color: white;
	padding: 15px;
	font-size: 1.1rem;
	font-weight: 600;
	width: 100%;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(255, 131, 54, 0.3);
}

.btn-primary::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.6s ease;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(255, 131, 54, 0.4);
	background: linear-gradient(135deg, var(--accent-dark), var(--accent-primary));
}

.btn-primary:hover::before {
	left: 100%;
}

.btn-primary:active,
.btn-primary:focus {
	transform: translateY(0);
	box-shadow: 0 4px 15px rgba(255, 131, 54, 0.3);
}

.text-center.mb-3 {
	margin-top: 25px;
	padding-top: 25px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.text-center.mb-3 a {
	color: var(--accent-primary);
	text-decoration: none;
	font-size: 0.9rem;
	position: relative;
	transition: color 0.3s ease;
	display: inline-block;
	margin: 5px 0;
}

.text-center.mb-3 a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--accent-primary);
	transition: width 0.3s ease;
}

.text-center.mb-3 a:hover {
	color: var(--accent-dark);
}

.text-center.mb-3 a:hover::after {
	width: 100%;
}

.text-center.mb-3 span {
	color: var(--text-muted);
	font-size: 0.9rem;
	display: block;
	margin: 8px 0;
}

@keyframes glow {
	0%, 100% {
		text-shadow: 0 0 20px rgba(255, 131, 54, 0.3);
	}
	50% {
		text-shadow: 0 0 30px rgba(255, 131, 54, 0.5);
	}
}

@media (max-width: 576px) {
	.card {
		padding: 30px 25px;
		margin: 10px;
	}
	
	#newlog h1 {
		font-size: 2rem;
	}
	
	.form-control {
		padding: 12px 15px 12px 45px;
	}
	
	.icon {
		left: 15px;
		font-size: 1rem;
	}
	
	.toggle-password {
		right: 15px;
		font-size: 1rem;
	}
}

.floating-particles {
	position: absolute;
	width: 100%;
	height: 100%;
	overflow: hidden;
	top: 0;
	left: 0;
}

.particle {
	position: absolute;
	background: var(--accent-primary);
	border-radius: 50%;
	opacity: 0.1;
	animation: float 6s ease-in-out infinite;
}

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

.ripple {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: scale(0);
	animation: ripple-animation 0.6s linear;
	pointer-events: none;
}

@keyframes ripple-animation {
	to {
		transform: scale(4);
		opacity: 0;
	}
}