:root {
	/* COLORS */
	--bg-deep: #020617;
	--bg-gradient-start: #1e293b;
	--bg-gradient-end: #020617;

	--card-bg: #ffffff;
	--card-border: #e2e8f0;

	--brand-red: #b91c1c;
	--brand-red-hover: #991b1b;
	--brand-blue: #0f172a;

	--text-main: #0f172a;
	--text-muted: #64748b;

	--input-bg: #f8fafc;
	--input-border: #cbd5e1;
	--input-text: #1e293b;
	--focus-blue: #2563eb;
}

body {
	margin: 0;
	padding: 0;
	font-family: "Inter", sans-serif;
	background-color: #101835; /* NEW - was var(--bg-deep) */
	background-image: radial-gradient(circle at center, #253475 0%, #101835 100%); /* NEW - blue gradient */
	/* min-height ensures full viewport coverage without cutting off on resize */
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-main);
	position: relative;
	/* Needed for absolute positioning of footer */
}

.login-wrapper {
	width: 100%;
	max-width: 420px;
	padding: 20px;
	/* Wrapper only contains the card now, ensuring perfect vertical center */
}

.login-card {
	background: var(--card-bg);
	border-radius: 12px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	overflow: hidden;
}

.card-header {
	background: white;
	padding: 5px;
	/* Equal padding top/bottom for logo centering */
	text-align: center;
	border-bottom: 1px solid var(--card-border);
}

.card-header img {
	max-height: 65px;
	display: inline-block;
}

.card-body {
	padding: 30px;
	padding: 40px;
}

h2 {
	margin: 0 0 5px 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--text-main);
	text-align: center;
}

p.sub-text {
	text-align: center;
	color: var(--text-muted);
	font-size: 14px;
	margin: 0 0 30px 0;
}

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

label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	color: var(--brand-blue);
	font-weight: 700;
	/* Made slightly bolder to match your image */
}

.input-wrapper {
	position: relative;
}

.input-wrapper i {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	font-size: 14px;
}

input {
	width: 100%;
	box-sizing: border-box;
	background: var(--input-bg);
	border: 1px solid var(--input-border);
	border-radius: 6px;
	padding: 14px 14px 14px 40px;
	color: var(--input-text);
	font-size: 15px;
	transition: all 0.2s;
	outline: none;
}

input:focus {
	background: #ffffff;
	border-color: var(--focus-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

button.btn-login {
	width: 100%;
	background-color: var(--brand-red);
	color: white;
	border: none;
	padding: 14px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s;
	margin-top: 15px;
	box-shadow: 0 4px 6px -1px rgba(185, 28, 28, 0.2);
}

button.btn-login:hover {
	background-color: var(--brand-red-hover);
}

.alert-error {
	background: #fef2f2;
	border: 1px solid #fee2e2;
	color: #b91c1c;
	padding: 12px;
	border-radius: 6px;
	font-size: 13px;
	margin-bottom: 25px;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* FIXED FOOTER - Sticks to bottom to fix visual centering of card */
.footer {
	position: absolute;
	bottom: 30px;
	left: 0;
	width: 100%;
	text-align: center;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.4);
}
.signup-link {
	text-align: center;
	margin-top: 20px;
	font-size: 14px;
	color: var(--text-muted);
}
.signup-link a {
	color: var(--brand-red);
	text-decoration: none;
	font-weight: 600;
}
.signup-link a:hover {
	text-decoration: underline;
}
.back-link {
	text-align: center;
	margin-top: 20px;
}

.back-link a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 14px;
}

.back-link a:hover {
	color: var(--brand-red);
}

/* Code input styles */
.code-inputs {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 25px 0;
}

.code-inputs input {
	width: 48px;
	height: 56px;
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	border: 2px solid var(--input-border);
	border-radius: 8px;
	background: var(--input-bg);
	color: var(--input-text);
	transition: all 0.2s;
	outline: none;
	box-sizing: border-box;
}

.code-inputs input:focus {
	border-color: var(--focus-blue);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.code-inputs input.filled {
	border-color: #22c55e;
	background: #f0fdf4;
}

.resend-section {
	text-align: center;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--card-border);
}

.resend-section p {
	color: var(--text-muted);
	font-size: 13px;
	margin: 0 0 8px 0;
}

.resend-section a {
	color: var(--brand-red);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.resend-section a:hover {
	text-decoration: underline;
}
.floating-icon {
	animation: float 6s ease-in-out infinite;
	position: fixed;
	opacity: 0.08;
	color: white;
	z-index: 0;
}

.floating-icon:nth-child(2) {
	animation-delay: 2s;
}

.floating-icon:nth-child(3) {
	animation-delay: 4s;
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-20px);
	}
}

.login-wrapper {
	position: relative;
	z-index: 1;
}
