:root {
	--primary-color: #2563eb;
	--primary-hover: #1d4ed8;
	--secondary-color: #3b82f6;
	--background-start: #f8fafc;
	--background-end: #e2e8f0;
	--input-bg: #ffffff;
	--input-border: #d1d5db;
	--input-focus: #2563eb;
	--text-primary: #1f2937;
	--text-secondary: #6b7280;
	--gray-light: #f3f4f6;
	--gray-medium: #9ca3af;
	--white: #ffffff;
	--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
	--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
	--shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

* {
	box-sizing: border-box;
}

body {
	background: linear-gradient(135deg, var(--background-start) 0%, var(--background-end) 100%);
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	margin: 0;
	position: relative;
	overflow-x: hidden;
}

/* Animações de fundo */
body::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
	background-size: 50px 50px;
	animation: backgroundMove 20s linear infinite;
	pointer-events: none;
}

@keyframes backgroundMove {
	0% { transform: translate(0, 0); }
	100% { transform: translate(50px, 50px); }
}

.login {
	width: 100%;
	max-width: 450px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
	animation: fadeInUp 0.6s ease-out;
}

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

.form {
	position: relative;
	background: var(--white);
	border-radius: 20px;
	padding: 50px 40px;
	text-align: center;
	box-shadow: var(--shadow-xl);
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.form:hover {
	transform: translateY(-5px);
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.form-header {
	margin-bottom: 35px;
}

.imagem {
	margin-bottom: 15px;
	width: 180px;
	height: auto;
	transition: all 0.3s ease;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.imagem:hover {
	transform: scale(1.05) rotate(2deg);
	filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.form-title {
	font-size: 24px;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 8px;
	margin-top: 5px;
}

.form-subtitle {
	font-size: 14px;
	color: var(--text-secondary);
	margin-bottom: 30px;
}

.input-group {
	position: relative;
	margin-bottom: 25px;
	text-align: left;
}

.input-group label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-primary);
	margin-bottom: 8px;
}

.input-icon {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-secondary);
	font-size: 18px;
	pointer-events: none;
	transition: color 0.3s ease;
	z-index: 2;
}

.input-group.has-icon input {
	padding-left: 45px;
}

.form input {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	width: 100%;
	border: 2px solid var(--input-border);
	border-radius: 12px;
	padding: 15px 20px;
	padding-left: 45px;
	box-sizing: border-box;
	font-size: 15px;
	transition: all 0.3s ease;
	background: var(--input-bg);
	color: var(--text-primary);
	outline: none;
}

.form input::placeholder {
	color: var(--gray-medium);
}

.form input:focus {
	border-color: var(--input-focus);
	background: var(--white);
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
	transform: translateY(-2px);
}

.form input:focus + .input-icon,
.input-group:focus-within .input-icon {
	color: var(--primary-color);
}

.form button {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	width: 100%;
	border: 0;
	border-radius: 12px;
	padding: 16px 24px;
	color: var(--white);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.5px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: var(--shadow-md);
	position: relative;
	overflow: hidden;
	margin-top: 10px;
}

.form button::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.6s, height 0.6s;
}

.form button:hover::before {
	width: 300px;
	height: 300px;
}

.form button:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.form button:active {
	transform: translateY(0);
	box-shadow: var(--shadow-sm);
}

.form-footer {
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid #f0f0f0;
}

.form-footer > div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.form a {
	color: var(--primary-color);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.form a:hover {
	color: var(--primary-hover);
	transform: translateX(3px);
}

.form a i {
	font-size: 12px;
	transition: transform 0.3s ease;
}

.form a:hover i {
	transform: translateX(3px);
}

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

.form button.loading::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	top: 50%;
	left: 50%;
	margin-left: -10px;
	margin-top: -10px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: white;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

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

/* Responsividade */
@media (max-width: 480px) {
	.login {
		padding: 10px;
	}
	
	.form {
		padding: 40px 25px;
		border-radius: 15px;
	}
	
	.imagem {
		width: 150px;
		margin-bottom: 25px;
	}
	
	.form-title {
		font-size: 20px;
	}
	
	.form input {
		padding: 14px 18px;
		padding-left: 45px;
		font-size: 14px;
	}
	
	.form button {
		padding: 14px 20px;
		font-size: 15px;
	}
}

/* Animações de entrada */
@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.input-group {
	animation: slideIn 0.4s ease-out;
	animation-fill-mode: both;
}

.input-group:nth-child(1) { animation-delay: 0.1s; }
.input-group:nth-child(2) { animation-delay: 0.2s; }
.input-group:nth-child(3) { animation-delay: 0.3s; }