* {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	box-sizing: border-box;
}

body {
	background-color: #202020;
	margin: 0;
	padding: 0;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

main {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
}

form {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: 450px;
	padding: 40px 30px;
	background-color: rgba(100, 100, 100, 0.514);
	border: 2px solid #000000;
	border-radius: 0.75em;
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

form img {
	width: 50%;
	max-width: 180px;
	margin-bottom: 30px;
}

.form-group {
	position: relative;
	width: 100%;
	margin-bottom: 15px;
}

form input[type='text'],
form input[type='password'] {
	background-color: rgba(100, 100, 100, 0.514);
	color: #fff;
	padding: 12px 45px 12px 15px;
	width: 100%;
	border: #000000 1px solid;
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
	border-radius: 0.75em;
	font-size: 14px;
	transition: all 0.3s ease;
}

form input[type='text']:focus,
form input[type='password']:focus {
	outline: none;
	border-color: #ffffff;
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.2);
}

form input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.arrow-btn {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background-color: transparent;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	padding: 5px 10px;
	transition: all 0.3s ease;
	line-height: 1;
	width: auto;
	height: auto;
	box-shadow: none;
	margin: 0;
}

.arrow-btn:hover {
	transform: translateY(-50%) scale(1.2);
	background-color: transparent;
	box-shadow: none;
}

#passwordGroup {
	width: 100%;
	margin-bottom: 15px;
}

#passwordGroup input[type='password'],
#passwordGroup input[type='text'] {
	margin-bottom: 10px;
}

.pass-visible {
	margin-top: 5px;
	color: #fff;
	font-size: 13px;
	padding-left: 5px;
}

.pass-visible label {
	cursor: pointer;
	user-select: none;
	display: flex;
	align-items: center;
	gap: 8px;
}

.pass-visible input[type='checkbox'] {
	cursor: pointer;
	width: auto;
	margin: 0;
	padding: 0;
}

.btn-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 15px;
	width: 100%;
}

form button[type='submit'] {
	background-color: rgba(100, 100, 100, 0.514);
	color: #fff;
	width: 100%;
	max-width: 200px;
	padding: 12px 20px;
	border: #000000 1px solid;
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
	border-radius: 0.75em;
	transition: all 0.3s ease;
	font-weight: bold;
	font-size: 15px;
	cursor: pointer;
}

form button[type='submit']:hover {
	background-color: #000000;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
	transform: scale(1.03);
}

.btn-container a {
	color: #ffffff;
	text-decoration: none;
	font-size: 14px;
	transition: all 0.3s ease;
	margin: 0;
}

.btn-container a:hover {
	text-decoration: underline;
	color: #cccccc;
}

.error {
	background-color: #ff4444;
	color: white;
	padding: 12px 15px;
	border-radius: 0.75em;
	margin-bottom: 15px;
	text-align: center;
	width: 100%;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 2px 5px rgba(255, 68, 68, 0.3);
}

.hidden {
	display: none !important;
}

.loading {
	opacity: 0.6;
	pointer-events: none;
	cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	form {
		max-width: 100%;
		padding: 30px 20px;
	}

	form img {
		width: 60%;
		max-width: 150px;
	}
}

@media (max-width: 480px) {
	form {
		padding: 25px 15px;
	}

	form img {
		width: 70%;
	}

	form input[type='text'],
	form input[type='password'] {
		font-size: 16px; /* Prevents zoom on iOS */
	}
}