* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: Arial, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

main {
	background: white;
	border-radius: 12px;
	padding: 40px;
	width: 100%;
	max-width: 450px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

h1 {
	text-align: center;
	margin-bottom: 30px;
	color: #1f2937;
	font-size: 28px;
	font-weight: 600;
}

form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

form > div {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

label {
	font-weight: 500;
	color: #374151;
	font-size: 14px;
}

input[type="text"],
input[type="password"] {
	width: 100%;
	padding: 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

input[type="text"]:focus,
input[type="password"]:focus {
	outline: none;
	border-color: #667eea;
}

.checkbox-label {
	flex-direction: row;
	align-items: center;
	gap: 8px;
	font-weight: normal;
}

input[type="checkbox"] {
	width: auto;
	margin: 0;
}

#error {
	color: #dc2626;
	font-size: 14px;
	min-height: 20px;
	padding: 8px;
	background: #fee2e2;
	border-radius: 4px;
	display: none;
}

#error:not(:empty) {
	display: block;
}

button[type="submit"] {
	padding: 12px;
	background: #667eea;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
}

button[type="submit"]:hover {
	background: #5568d3;
}

button[type="submit"]:active {
	background: #4c5bc4;
}

p {
	text-align: center;
	margin-top: 20px;
}

a {
	color: #667eea;
	text-decoration: none;
	font-size: 14px;
}

a:hover {
	text-decoration: underline;
}
