/* ── Login page ── */

/* Background layer with gradient overlays */
.login-bg {
	position: fixed;
	inset: 0;
	background:
		linear-gradient(
			90deg,
			rgba(11, 27, 51, 0.86) 0%,
			rgba(11, 27, 51, 0.62) 38%,
			rgba(11, 27, 51, 0.25) 72%,
			rgba(11, 27, 51, 0.1) 100%
		),
		radial-gradient(
			900px 520px at 18% 6%,
			rgba(240, 138, 26, 0.22),
			transparent 62%
		),
		radial-gradient(
			920px 620px at 76% 10%,
			rgba(111, 168, 255, 0.18),
			transparent 62%
		),
		url("/static/images/batomoche.webp") center / cover no-repeat;
	filter: saturate(1.08) contrast(1.02);
}
.login-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
		linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.055) 1px,
			transparent 1px
		);
	background-size: 86px 86px;
	opacity: 0.15;
	mask-image: radial-gradient(
		circle at 18% 14%,
		rgba(0, 0, 0, 0.95),
		transparent 66%
	);
	-webkit-mask-image: radial-gradient(
		circle at 18% 14%,
		rgba(0, 0, 0, 0.95),
		transparent 66%
	);
	pointer-events: none;
}

.cepheus {
	margin: 0;
	min-height: 100vh;
}
.cepheus a {
	text-decoration: none;
	color: rgba(169, 208, 225, 0.92);
	cursor: pointer;
}
.cepheus a:hover {
	color: #eaf3f9;
}
.cepheus td {
	color: #eaf3f9;
}

/* Login layout — 2-column grid matching React app */
.login-wrap {
	position: relative;
	min-height: 100vh;
	width: 100vw;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px;
	align-items: center;
	padding: clamp(22px, 4vw, 52px) clamp(22px, 4vw, 52px)
		clamp(22px, 4vw, 52px) clamp(48px, 6vw, 96px);
	z-index: 1;
}

/* Left / marketing section */
.welcome-section {
	max-width: 650px;
	text-align: left;
	color: var(--title-white-color);
}
.welcome-section h1 {
	font-family: Fraunces, Georgia, serif;
	font-weight: 400;
	letter-spacing: -0.5px;
	margin: 0 0 12px;
	font-size: clamp(42px, 5vw, 64px);
	line-height: 1.02;
	color: #fff;
}
.welcome-section p {
	margin: 0 0 18px;
	max-width: 56ch;
	color: rgba(255, 255, 255, 0.82);
	font-size: 16px;
	line-height: 1.5;
}

/* Feature chips */
.login-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}
.login-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: rgba(255, 255, 255, 0.88);
	font-size: 13px;
	font-weight: 600;
}
.login-chip-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: rgba(240, 138, 26, 0.92);
	box-shadow: 0 0 0 4px rgba(240, 138, 26, 0.16);
}

/* Glass login card */
.login-form {
	width: min(460px, 100%);
	justify-self: start;
	margin-left: 10%;
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.42);
	box-shadow: 0 30px 90px rgba(11, 27, 51, 0.22);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	overflow: hidden;
	color: var(--navy);
	position: relative;
	padding: 22px 22px 18px;
}
.login-form::before {
	content: "";
	position: absolute;
	inset: -220px -240px auto auto;
	width: 420px;
	height: 420px;
	border-radius: 999px;
	background:
		radial-gradient(
			circle at 30% 30%,
			rgba(240, 138, 26, 0.16),
			transparent 62%
		),
		radial-gradient(
			circle at 60% 60%,
			rgba(111, 168, 255, 0.14),
			transparent 58%
		);
	transform: rotate(10deg);
	pointer-events: none;
}
.login-form h1 {
	margin-left: 0;
	margin-bottom: 14px;
	font-size: 18px;
	font-family: Nunito, sans-serif;
	font-weight: 800;
	letter-spacing: -0.2px;
	color: var(--navy);
}
.login-form .form-control {
	background-color: rgba(255, 255, 255, 0.9);
}
.login-form .btn-primary {
	background-color: #ff7f50;
	border: none;
}
.login-form .btn-primary:hover {
	background-color: #ff571f;
}
.login-form a {
	color: rgba(11, 27, 51, 0.7);
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
}
.login-form a:hover {
	text-decoration: underline;
}

/* Login form inputs */
.input-group {
	display: flex;
	gap: 0.5rem;
	flex-direction: column;
	margin-top: 10px;
}
.input-group label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 700;
	color: rgba(11, 27, 51, 0.72);
}
.login-form .form-input {
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(11, 27, 51, 0.12);
	padding: 12px;
	min-height: 46px;
	font-size: 14px;
	font-weight: 600;
	color: var(--navy);
	margin: 0;
	transition:
		border-color 0.14s ease,
		transform 0.12s ease,
		box-shadow 0.14s ease;
}
.login-form .form-input:focus {
	border-color: rgba(111, 168, 255, 0.55);
	box-shadow: 0 0 0 4px rgba(111, 168, 255, 0.16);
	transform: translateY(-1px);
}

/* Login CTA button */
.login-form .launch-button {
	margin-top: 14px;
	border: none;
	border-radius: 14px;
	height: 48px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.1px;
	color: var(--navy);
	background: linear-gradient(
		180deg,
		rgba(240, 138, 26, 0.96),
		rgba(225, 120, 5, 0.96)
	);
	box-shadow: 0 16px 38px rgba(240, 138, 26, 0.22);
}
.login-form .launch-button::before {
	display: none;
}

small {
	color: rgba(11, 27, 51, 0.6);
	font-size: 12px;
	line-height: 1.45;
}
.cepheus small {
	color: rgba(11, 27, 51, 0.6);
}
.cepheus small a {
	color: rgba(11, 27, 51, 0.7);
	font-weight: 700;
}

.remember-me {
	margin: 10px 0;
}
.remember-me label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: rgba(11, 27, 51, 0.7);
}

/* Login footer */
.login-footer {
	position: fixed;
	left: clamp(22px, 4vw, 52px);
	right: clamp(22px, 4vw, 52px);
	bottom: 18px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px;
	z-index: 2;
	pointer-events: none;
}

/* Login error */
.login-error {
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(198, 40, 40, 0.08);
	border: 1px solid rgba(198, 40, 40, 0.18);
	color: #c62828;
	font-size: 13px;
	font-weight: 600;
}

@media (max-width: 980px) {
	.login-wrap {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.login-form {
		justify-self: stretch;
		margin-left: 0;
	}
}
