* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html,
body {
	height: 100%;
	width: 100%;
}
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
	background-color: #f9fcff;
	overflow: hidden;
}
@keyframes blurOverlayAppear {
	0% {
		opacity: 0;
		-webkit-backdrop-filter: blur(0px);
		backdrop-filter: blur(0px);
	}
	100% {
		opacity: 1;
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
	}
}
@keyframes containerAppear {
	0% {
		opacity: 0;
		transform: translateY(30px) scale(0.9);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
@keyframes shake {
	0%,
	100% {
		transform: translateX(0);
	}
	10%,
	30%,
	50%,
	70%,
	90% {
		transform: translateX(-5px);
	}
	20%,
	40%,
	60%,
	80% {
		transform: translateX(5px);
	}
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
@keyframes fadeInError {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
#blur-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		135deg,
		rgba(102, 126, 234, 0.05) 0,
		rgba(118, 75, 162, 0.08) 100%
	);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	z-index: -1;
	animation: blurOverlayAppear 1.5s ease-out forwards 0.3s;
	pointer-events: none;
	opacity: 0;
}
.page-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1;
	padding: 20px;
	overflow-y: auto;
}
.card-container {
	background: rgba(255, 255, 255, 0.5);
	border: 1.5px solid rgba(255, 255, 255, 0.5);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	padding: 50px 40px;
	border-radius: 24px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1),
		0 0 0 1px rgba(0, 0, 0, 0.05) inset;
	width: 100%;
	max-width: 440px;
	animation: containerAppear 1s ease-out 0.8s backwards;
	position: relative;
	overflow: hidden;
	text-align: center;
}
.page-header {
	margin-bottom: 35px;
	text-align: center;
}
.page-icon {
	width: 70px;
	height: 70px;
	margin: 0 auto 20px;
	background: linear-gradient(135deg, #3b82f6 0, #1d4ed8 100%);
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
	animation: fadeIn 0.8s ease-out 1s backwards;
}
.page-icon svg {
	width: 36px;
	height: 36px;
	fill: white;
}
.page-title {
	font-size: 32px;
	font-weight: 700;
	color: #1a202c;
	margin: 0 0 12px;
	line-height: 1.2;
	letter-spacing: -0.5px;
}
.page-subtitle {
	font-size: 16px;
	color: #6b7280;
	margin-top: 8px;
}
.page-form {
	display: flex;
	flex-direction: column;
	margin-top: 35px;
}
.form-group {
	margin-bottom: 24px;
	text-align: left;
	position: relative;
}
.input-wrapper {
	position: relative;
}
.input-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	opacity: 0.4;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
.form-group input {
	width: 100%;
	padding: 16px;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	font-size: 16px;
	color: #1f2937;
	background-color: #fff;
	box-sizing: border-box;
	transition: all 0.3s ease;
	-webkit-appearance: none;
	appearance: none;
	font-family: inherit;
}
.form-group input.with-icon {
	padding-left: 48px;
}
.form-group input:focus {
	outline: 0;
	border-color: #3b82f6;
	box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
.form-group input:focus + .input-icon {
	opacity: 0.7;
}
.form-group input:disabled {
	background-color: #f3f4f6;
	color: #9ca3af;
	cursor: not-allowed;
	opacity: 1;
}
.form-group input[readonly] {
	background-color: #f9fafb;
	color: #6b7280;
}
.btn {
	padding: 16px 20px;
	border: 0;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	letter-spacing: 0.5px;
	position: relative;
	overflow: hidden;
}
.btn-primary {
	background: linear-gradient(135deg, #3b82f6 0, #1d4ed8 100%);
	color: #fff;
	box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}
.btn-primary:active {
	transform: translateY(0);
	box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}
.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}
.footer-hint {
	margin-top: 30px;
	font-size: 13px;
	color: #9ca3af;
	animation: fadeIn 1s ease-out 1.5s backwards;
	text-align: center;
}
.footer-hint a {
	color: #3b82f6;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}
.footer-hint a:hover {
	color: #1d4ed8;
	text-decoration: underline;
}
.login-error {
	margin-top: 24px;
	padding: 14px 18px;
	border-radius: 12px;
	background: rgba(239, 68, 68, 0.08);
	color: #c53030;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	animation: fadeInError 0.3s ease-out;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 1px solid rgba(239, 68, 68, 0.2);
	text-align: center;
}
.login-error::before {
	content: "⚠️";
	flex-shrink: 0;
	font-size: 16px;
}
.btn-loading {
	position: relative;
	color: transparent !important;
}
.btn-loading::after {
	content: "";
	position: absolute;
	width: 14px;
	height: 14px;
	top: 50%;
	left: 50%;
	margin-left: -7px;
	margin-top: -7px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: white;
	animation: spin 0.8s linear infinite;
}
.btn-full-width {
	width: 100%;
}
.login-error-hidden {
	display: none;
}
.password-hint {
	margin-top: 8px;
	font-size: 12px;
	color: #6b7280;
	text-align: center;
	animation: fadeIn 1s ease-out 1.2s backwards;
}
.username-group {
	margin-bottom: 24px;
}
.ip-hint {
	margin-top: 8px;
	font-size: 12px;
	color: #3b82f6;
	text-align: center;
	animation: fadeIn 1s ease-out 1.4s backwards;
	background: rgba(59, 130, 246, 0.05);
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid rgba(59, 130, 246, 0.1);
}
.ip-info {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
}
.ip-info svg {
	width: 14px;
	height: 14px;
	fill: #6b7280;
}
.ip-status {
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 10px;
	margin-left: 8px;
	font-weight: 600;
}
.ip-allowed {
	background: rgba(34, 197, 94, 0.1);
	color: #16a34a;
}
.ip-denied {
	background: rgba(239, 68, 68, 0.1);
	color: #dc2626;
}
.success-message {
	margin-top: 24px;
	padding: 14px 18px;
	border-radius: 12px;
	background: rgba(34, 197, 94, 0.08);
	color: #16a34a;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	animation: fadeInError 0.3s ease-out;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 1px solid rgba(34, 197, 94, 0.2);
	text-align: center;
}
.success-message::before {
	content: "🔆";
	flex-shrink: 0;
	font-size: 16px;
}
.success-message-hidden {
	display: none;
}
@media (max-width: 768px) {
	.page-wrapper {
		padding: 20px 16px;
		padding-top: 20px;
		padding-bottom: 20px;
		justify-content: flex-start;
		align-items: center;
	}
	.card-container {
		padding: 40px 28px;
		border-radius: 20px;
		max-width: 100%;
		margin-top: auto;
		margin-bottom: auto;
	}
	.page-icon {
		width: 60px;
		height: 60px;
		border-radius: 16px;
		margin-bottom: 16px;
	}
	.page-icon svg {
		width: 30px;
		height: 30px;
	}
	.page-form {
		margin-top: 28px;
	}
	.form-group {
		margin-bottom: 20px;
	}
	.form-group input {
		padding: 14px;
		font-size: 16px;
		border-radius: 10px;
	}
	.form-group input.with-icon {
		padding-left: 44px;
	}
	.input-icon {
		left: 14px;
		width: 18px;
		height: 18px;
	}
	.btn {
		padding: 15px 20px;
		font-size: 15px;
		border-radius: 10px;
	}
	.footer-hint {
		margin-top: 24px;
		font-size: 12px;
	}
}
@media (max-width: 480px) {
	.page-wrapper {
		padding: 12px;
		justify-content: flex-start;
		align-items: center;
	}
	.card-container {
		padding: 35px 24px;
		border-radius: 18px;
		margin-top: auto;
		margin-bottom: auto;
	}
	.page-icon {
		width: 55px;
		height: 55px;
		border-radius: 14px;
	}
	.page-icon svg {
		width: 28px;
		height: 28px;
	}
	.page-title {
		font-size: 24px;
	}
}
@media (max-height: 600px) and (orientation: landscape) {
	.page-wrapper {
		padding: 20px;
		justify-content: flex-start;
		align-items: center;
	}
	.card-container {
		padding: 30px 35px;
		margin-top: auto;
		margin-bottom: auto;
	}
	.page-icon {
		width: 50px;
		height: 50px;
		margin-bottom: 12px;
	}
	.page-icon svg {
		width: 26px;
		height: 26px;
	}
	.page-title {
		font-size: 22px;
		margin-bottom: 8px;
	}
	.page-form {
		margin-top: 20px;
	}
	.form-group {
		margin-bottom: 16px;
	}
	.footer-hint {
		margin-top: 16px;
	}
}