/* ------ Login Page ------ */
.login-section {
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background: linear-gradient(
			135deg,
			rgba(18, 55, 76, 0.95) 0%,
			rgba(7, 32, 43, 0.9) 50%,
			rgba(68, 167, 199, 0.85) 100%
		),
		url("../images/newsletter-background.webp") center/cover;
	background-attachment: fixed;
	padding: 9rem 1rem 4rem;
	position: relative;
	overflow: hidden;
}

.login-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(
			ellipse at 30% 20%,
			rgba(254, 150, 70, 0.1) 0%,
			transparent 50%
		),
		radial-gradient(
			ellipse at 70% 80%,
			rgba(68, 167, 199, 0.15) 0%,
			transparent 50%
		);
	pointer-events: none;
}

.login-container {
	width: 100%;
	max-width: 450px;
}

.login-card {
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(25px);
	-webkit-backdrop-filter: blur(25px);
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), 0 15px 35px rgba(0, 0, 0, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.4);
	animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 3.5rem;
	overflow: hidden;
}

/* --- Login Header --- */

.login-header {
	text-align: center;
	margin-bottom: 2rem;
	position: relative;
}

.login-header h1 {
	color: var(--text-light);
	margin-bottom: 0.75rem;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-header p {
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	color: var(--text-secondary);
}

@keyframes iconPulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

/* --- Login Form --- */

.login-form {
	margin-bottom: 2rem;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	font-size: 0.95rem;
	color: var(--text-light);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	margin-bottom: 0.75rem;
}

.input-group {
	position: relative;
	display: flex;
	align-items: center;
	margin-bottom: 0.5rem;
}

.input-group i {
	position: absolute;
	left: 1.2rem;
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.7);
	transition: all 0.3s ease;
	z-index: 2;
}

.input-group input {
	width: 100%;
	font-size: 1rem;
	color: var(--text-light);
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 1.2rem 1.2rem 1.2rem 3.2rem;
}

.input-group input::placeholder {
	color: rgba(255, 255, 255, 0.6);
	font-weight: 300;
}

.input-group input:focus {
	outline: none;
	border-color: rgba(254, 150, 70, 0.8);
	background: rgba(255, 255, 255, 0.15);
	box-shadow: 0 0 0 4px rgba(254, 150, 70, 0.15),
		0 8px 25px rgba(254, 150, 70, 0.2);
	transform: translateY(-2px);
}

.input-group input:focus + i,
.input-group input:focus ~ i {
	color: rgba(254, 150, 70, 1);
	transform: scale(1.1);
}

.password-toggle {
	position: absolute;
	top: 50%;
	right: 2.5rem;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.7);
	border: none;
	border-radius: 6px;
	background: none;
	transform: translateY(-50%);
	transition: all 0.3s ease;
	padding: 0.5rem;
	cursor: pointer;
	z-index: 2;
}

.form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2rem;
}

.checkbox-container {
	display: flex;
	align-items: center;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.9);
	transition: all 0.3s ease;
	cursor: pointer;
}

.checkbox-container:hover {
	color: rgba(255, 255, 255, 1);
}

.checkbox-container input {
	display: none;
}

.checkmark {
	position: relative;
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	margin-right: 0.75rem;
}

.checkbox-container input:checked + .checkmark {
	background: var(--gradient-primary);
	border-color: transparent;
	box-shadow: 0 4px 12px rgba(254, 150, 70, 0.3);
	transform: scale(1.1);
}

.checkbox-container input:checked + .checkmark::after {
	content: "✓";
	position: absolute;
	top: -1px;
	left: 3px;
	font-size: 14px;
	font-weight: bold;
	color: var(--text-light);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Login Button */

.login-btn {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text-light);
	border: 2px solid transparent;
	border-radius: 12px;
	background: var(--gradient-primary);
	box-shadow: 0 8px 25px rgba(254, 150, 70, 0.4),
		0 4px 12px rgba(254, 150, 70, 0.3);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	gap: 0.75rem;
	padding: 1.3rem;
	margin-bottom: 1rem;
	overflow: hidden;
}

.login-btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.3),
		transparent
	);
	transition: left 0.6s ease;
}

.login-btn:hover {
	background: linear-gradient(
		135deg,
		var(--secondary-orange) 0%,
		var(--primary-orange) 100%
	);
	box-shadow: 0 12px 35px rgba(254, 150, 70, 0.5),
		0 6px 15px rgba(254, 150, 70, 0.4);
	transform: translateY(-3px);
}

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

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

/* Active login icon in header */
#header .login-icon.active {
	color: var(--primary-orange);
	background: var(--light-orange);
}

/* Animations */
@keyframes slideInUp {
	0% {
		opacity: 0;
		transform: translateY(30px) scale(0.98);
		filter: blur(3px);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
		filter: blur(0);
	}
}

/* Loading state for form */
.login-btn.loading {
	pointer-events: none;
	opacity: 0.7;
}

.login-btn.loading::after {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid transparent;
	border-top: 2px solid var(--white);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-left: 0.5rem;
}

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

/* Responsive */
@media (max-width: 768px) {
	.login-card {
		padding: 2rem 1.5rem;
	}

	.login-header h1 {
		font-size: 1.75rem;
	}

	.form-options {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}
}

@media (max-width: 480px) {
	.login-section {
		padding: 100px 15px 40px;
	}

	.login-card {
		padding: 1.5rem;
	}

	.login-header i {
		font-size: 3rem;
	}

	.login-header h1 {
		font-size: 1.5rem;
	}
}
