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

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	background: #0f0f0f;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.site-logo {
	position: fixed;
	top: 20px;
	left: 20px;
	z-index: 1000;
	display: block;
	width: 50px;
	height: 50px;
	transition: opacity 0.2s ease;
}

.site-logo:hover {
	opacity: 0.8;
}

.site-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media (max-width: 768px) {
	.site-logo {
		width: 40px;
		height: 40px;
		top: 15px;
		left: 15px;
	}
}

.login-container {
	width: 100%;
	max-width: 400px;
	padding: 20px;
}

.login-box {
	background: #1a1a1a;
	padding: 40px;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

h1 {
	text-align: center;
	margin-bottom: 30px;
	color: #ffffff;
	font-size: 28px;
	font-weight: 700;
}

.message {
	padding: 10px;
	margin-bottom: 20px;
	border-radius: 5px;
	display: none;
	font-size: 14px;
}

.message.error {
	background: #3a1a1a;
	color: #ff6b6b;
	border: 1px solid #5a2a2a;
	display: block;
}

.message.success {
	background: #1a3a1a;
	color: #51cf66;
	border: 1px solid #2a5a2a;
	display: block;
}

.form-group {
	margin-bottom: 20px;
}

.password-wrapper {
	position: relative;
}

.toggle-password {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888;
	transition: color 0.2s;
	z-index: 10;
}

.toggle-password:hover {
	color: #bbb;
}

.eye-icon {
	width: 20px;
	height: 20px;
}

label {
	display: block;
	margin-bottom: 5px;
	color: #e0e0e0;
	font-weight: 500;
	font-size: 14px;
}

input[type="text"],
input[type="password"] {
	width: 100%;
	padding: 12px;
	padding-right: 42px; /* Space for icons */
	border: 2px solid #333;
	background: #252525;
	color: #ffffff;
	border-radius: 5px;
	font-size: 16px;
	transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
	outline: none;
	border-color: #667eea;
	background: #2a2a2a;
}

.btn-login {
	width: 100%;
	padding: 12px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.redirect-link {
	margin-top: 15px;
	text-align: center;
}

.redirect-link a {
	color: #667eea;
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.3s ease;
}

.redirect-link a:hover {
	color: #764ba2;
	text-decoration: underline;
}