:root {
	--primary: #00a843;
	--primary-dark: #008634;
	--accent: #00d653;
	--bg-primary: #ffffff;
	--bg-secondary: #f8f9fa;
	--text-primary: #212529;
	--text-secondary: #6c757d;
	--border-color: #dee2e6;
	--shadow: rgba(0, 0, 0, 0.08);
	--transition: all 0.3s ease;
}

[data-theme="dark"] {
	--primary: #00a843;
	--primary-dark: #00d653;
	--accent: #00ff6a;
	--bg-primary: #121212;
	--bg-secondary: #1e1e1e;
	--text-primary: #e0e0e0;
	--text-secondary: #a0a0a0;
	--border-color: #333333;
	--shadow: rgba(0, 0, 0, 0.2);
}

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

body {
	margin: 0;
	padding: 0;
	font-family: 'Inter', sans-serif;
	background: linear-gradient(145deg, var(--bg-secondary), var(--bg-primary));
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	overflow: hidden;
	transition: var(--transition);
}

[data-theme="dark"] body {
	background: linear-gradient(145deg, #0a0a0a, var(--bg-primary));
}

/* Botão de Alternância de Tema */
.theme-toggle {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 1001;
	background: var(--bg-primary);
	border: 1px solid var(--border-color);
	border-radius: 50px;
	width: 60px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 5px;
	cursor: pointer;
	box-shadow: var(--shadow);
	transition: var(--transition);
}

.theme-toggle i {
	font-size: 16px;
	color: var(--text-secondary);
	transition: var(--transition);
}

.theme-toggle .active {
	color: var(--primary);
}

.theme-toggle .toggle-indicator {
	position: absolute;
	width: 22px;
	height: 22px;
	background: var(--primary);
	border-radius: 50%;
	transition: var(--transition);
}

[data-theme="light"] .theme-toggle .toggle-indicator {
	left: 4px;
}

[data-theme="dark"] .theme-toggle .toggle-indicator {
	left: 34px;
}

/* Partículas de fundo */
.particles {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.particle {
	position: absolute;
	background: rgba(0, 168, 67, 0.3);
	border-radius: 50%;
	filter: blur(1px);
	animation: float 15s infinite linear;
}

@keyframes float {
	0% { transform: translateY(0) rotate(0deg); opacity: 1; }
	100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; }
}

.login-container {
	width: 520px;
	max-width: 90%;
	padding: 50px 40px;
	background-color: var(--bg-primary);
	border-radius: 20px;
	box-shadow: 0 0 20px rgba(0, 168, 67, 0.1);
	margin: 100px auto;
	position: relative;
	z-index: 1;
	border: 1px solid var(--border-color);
	transition: var(--transition);
}

h2 {
	text-align: center;
	font-weight: 700;
	font-size: 32px;
	margin-bottom: 40px;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	position: relative;
	font-family: 'Fira Code', monospace;
}

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

.input-group {
	margin-bottom: 24px;
	position: relative;
}

label {
	font-size: 14px;
	margin-bottom: 8px;
	display: block;
	color: var(--text-secondary);
	font-weight: 500;
}

input {
	width: 100%;
	padding: 16px;
	border: none;
	border-radius: 12px;
	background-color: var(--bg-secondary);
	color: var(--text-primary);
	font-size: 15px;
	outline: none;
	transition: all 0.3s ease;
	border: 1px solid var(--border-color);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(0, 168, 67, 0.2);
}

.input-icon {
	position: absolute;
	right: 16px;
	top: 38px;
	color: var(--text-secondary);
}

.forgot {
	text-align: right;
	margin-bottom: 24px;
}

.forgot a {
	color: var(--text-secondary);
	font-size: 13px;
	text-decoration: none;
	transition: color 0.3s;
	display: inline-flex;
	align-items: center;
}

.forgot a:hover {
	color: var(--primary);
}

.forgot a svg {
	margin-left: 5px;
	width: 14px;
	height: 14px;
}

button {
	width: 100%;
	padding: 16px;
	border: none;
	border-radius: 12px;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	color: #fff;
	font-weight: bold;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	z-index: 1;
	box-shadow: 0 4px 15px rgba(0, 168, 67, 0.3);
	font-family: 'Fira Code', monospace;
}

button::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, var(--accent), var(--primary));
	opacity: 0;
	transition: opacity 0.3s;
	z-index: -1;
}

button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 168, 67, 0.4);
}

button:hover::before {
	opacity: 1;
}

button:active {
	transform: translateY(0);
}

.register {
	text-align: center;
	margin-top: 24px;
	font-size: 14px;
	color: var(--text-secondary);
}

.register a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 500;
	margin-left: 5px;
	transition: all 0.3s;
}

.register a:hover {
	text-decoration: underline;
	color: var(--primary-dark);
}

/* Efeito de brilho sutil */
.glow {
	position: absolute;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 168, 67, 0.15) 0%, rgba(0, 168, 67, 0) 70%);
	filter: blur(20px);
	z-index: 0;
}

.glow-1 {
	top: -50px;
	right: -50px;
	animation: pulse 8s infinite alternate;
}

.glow-2 {
	bottom: -80px;
	left: -80px;
	animation: pulse 10s infinite alternate-reverse;
}

@keyframes pulse {
	0% { transform: scale(1); opacity: 0.5; }
	100% { transform: scale(1.2); opacity: 0.8; }
}

@media (max-width: 480px) {
	.login-container {
		width: 90%;
		padding: 30px 20px;
		margin: 60px auto;
		border-radius: 14px;
	}

	h2 {
		font-size: 22px;
		margin-bottom: 24px;
	}

	.input-group input {
		padding: 14px;
		font-size: 14px;
	}

	button {
		padding: 14px;
		font-size: 15px;
	}

	.forgot a {
		font-size: 12px;
	}

	.input-icon {
		top: 36px;
		font-size: 14px;
	}
}
