/* ==============================
   GLOBAL RESET
============================== */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', 'Segoe UI', sans-serif;
	background: #0b1120;
	color: #f8fafc;
	min-height: 100vh;
}

/* ==============================
   LOGIN CONTAINER
============================== */

.login-container {
	min-height: 100vh;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 24px;

	background:
		radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.15), transparent 35%),
		radial-gradient(circle at 85% 80%, rgba(139, 92, 246, 0.12), transparent 35%),
		#0b1120;
}

/* ==============================
   LOGIN CARD
============================== */

.login-card {
	width: 100%;
	max-width: 430px;
	padding: 42px;

	background: rgba(22, 32, 52, 0.85);
	border: 1px solid rgba(148, 163, 184, 0.15);
	border-radius: 20px;

	box-shadow:
		0 25px 60px rgba(0, 0, 0, 0.35),
		0 0 40px rgba(59, 130, 246, 0.05);

	backdrop-filter: blur(15px);

	animation: fadeIn 0.5s ease;
}

/* ==============================
   LOGO
============================== */

.logo {
	width: 100px;
	height: 88px;

	display: flex;
	justify-content: center;
	align-items: center;

	background: linear-gradient(135deg, #3b82f6, #6366f1);
	background-repeat: no-repeat;
	background-image: url(assets/images/header-logo.png);
	border-radius: 14px;

	font-size: 15px;
	font-weight: 800;
	letter-spacing: 1px;

	color: white;
	margin-bottom: 28px;

	box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
}

/* ==============================
   HEADINGS
============================== */

h1 {
	font-size: 29px;
	font-weight: 700;
	letter-spacing: -0.8px;
	margin-bottom: 10px;
}

.subtitle {
	color: #94a3b8;
	font-size: 14px;
	margin-bottom: 32px;
	line-height: 1.6;
}

/* ==============================
   FORM
============================== */

.input-group {
	margin-bottom: 23px;
}

.input-group label {
	display: block;
	margin-bottom: 9px;

	font-size: 13px;
	font-weight: 600;
	color: #cbd5e1;
}

.input-group input {
	width: 100%;
	height: 48px;

	padding: 0 15px;

	background: #0f172a;
	border: 1px solid #334155;
	border-radius: 10px;

	color: #f8fafc;
	font-size: 14px;

	outline: none;
	transition: all 0.25s ease;
}

.input-group input::placeholder {
	color: #64748b;
}

.input-group input:focus {
	border-color: #3b82f6;
	background: #111d33;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* ==============================
   PASSWORD INPUT
============================== */

.password-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.password-wrapper input {
	padding-right: 90px;
}

.password-wrapper button {
	position: absolute;
	right: 13px;

	background: transparent;
	border: none;

	color: #60a5fa;
	font-size: 12px;
	font-weight: 600;

	cursor: pointer;
	transition: color 0.2s ease;
}

.password-wrapper button:hover {
	color: #93c5fd;
}

/* ==============================
   LOGIN BUTTON
============================== */

.login-button {
	width: 100%;
	height: 49px;

	margin-top: 8px;

	background: linear-gradient(135deg, #3b82f6, #6366f1);
	border: none;
	border-radius: 10px;

	color: white;
	font-size: 14px;
	font-weight: 700;

	cursor: pointer;

	transition: all 0.25s ease;
}

.login-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
	filter: brightness(1.1);
}

.login-button:active {
	transform: translateY(0);
}

/* ==============================
   ERROR MESSAGE
============================== */

.error-message {
	padding: 13px 15px;
	margin-bottom: 22px;

	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.25);
	border-radius: 9px;

	color: #f87171;
	font-size: 13px;
}

/* ==============================
   FOOTER
============================== */

.footer-text {
	margin-top: 30px;

	text-align: center;
	color: #64748b;

	font-size: 11px;
	letter-spacing: 0.4px;
}

/* ==============================
   ANIMATIONS
============================== */

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(15px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 480px) {
	.login-container {
		padding: 18px;
	}

	.login-card {
		padding: 30px 24px;
		border-radius: 16px;
	}

	h1 {
		font-size: 25px;
	}
}

/* ==============================
   ALERT MESSAGE
============================== */

.alert {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	margin-top: 20px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
	animation: alertFadeIn 0.2s ease-out;
}

.alert[hidden] {
	display: none;
}

.alert-error {
	color: #842029;
	background-color: #f8d7da;
	border: 1px solid #f5c2c7;
	position: absolute;
	bottom: 0;
	width: 100%;
}

.alert-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background-color: #842029;
	color: white;
	font-weight: bold;
}

.alert-close {
	margin-left: auto;
	padding: 0;
	border: none;
	background: transparent;
	color: inherit;
	font-size: 22px;
	cursor: pointer;
	opacity: 0.7;
}

.alert-close:hover {
	opacity: 1;
}

@keyframes alertFadeIn {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}