:root {
	--bg-1: #061c2d;
	--bg-2: #0b3b3a;
	--card: #ffffff;
	--card-soft: #f8faf7;
	--text: #12202f;
	--muted: #6c7888;
	--line: #e7edf1;
	--brand: #0b8063;
	--brand-2: #d99a2b;
	--brand-dark: #064b3d;
	--danger: #b42318;
	--focus: #f2b84b;
	--shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
	--radius: 30px;
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
}

body {
	margin: 0;
	min-height: 100svh;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	color: var(--text);
	background:
		radial-gradient(circle at 14% 12%, rgba(217, 154, 43, 0.28), transparent 22rem),
		radial-gradient(circle at 86% 20%, rgba(13, 128, 99, 0.38), transparent 24rem),
		linear-gradient(135deg, var(--bg-1), var(--bg-2));
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 42px 42px;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 78%);
	pointer-events: none;
}

.login-page {
	position: relative;
	z-index: 1;
	min-height: 100svh;
	display: grid;
	place-items: center;
	padding: 18px;
}

.login-shell {
	width: min(100%, 440px);
	min-height: auto;
	display: block;
}

.hero-panel {
	display: none; /* oculto en móvil, visible en escritorio (≥920px) */
}

.hero-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(4, 21, 34, 0.54), rgba(4, 42, 34, 0.88)),
		radial-gradient(circle at 18% 20%, rgba(217, 154, 43, 0.34), transparent 34%),
		url("assets/muralJaen.jpg") center / cover no-repeat;
	z-index: -2;
	transform: scale(1.02);
}

.hero-panel::after {
	content: "";
	position: absolute;
	width: 300px;
	height: 300px;
	right: -145px;
	bottom: -125px;
	border: 54px solid rgba(217, 154, 43, 0.16);
	border-radius: 999px;
	z-index: -1;
}

.brand-row {
	display: flex;
	align-items: center;
	gap: 13px;
}

.logo-box {
	width: 58px;
	height: 58px;
	display: grid;
	place-items: center;
	padding: 8px;
	border-radius: 19px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
	overflow: hidden;
}

.logo-box img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.brand-copy strong {
	display: block;
	font-size: 18px;
	letter-spacing: 0.02em;
}

.brand-copy span {
	display: block;
	margin-top: 3px;
	color: rgba(255, 255, 255, 0.76);
	font-size: 13px;
}

.hero-kicker {
	width: fit-content;
	margin: 0 0 12px;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.13);
	color: #ffe3a7;
	font-size: 12px;
	font-weight: 850;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	backdrop-filter: blur(12px);
}

.hero-content {
	margin-top: 15px;
}

.hero-panel h1 {
	max-width: 620px;
	margin: 0;
	font-size: clamp(36px, 11vw, 58px);
	line-height: 0.92;
	letter-spacing: -0.07em;
	text-wrap: balance;
}

.hero-panel p {
	max-width: 520px;
	margin: 16px 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 16px;
	line-height: 1.55;
}

.time-card {
	width: min(100%, 340px);
	margin-top: 22px;
	padding: 15px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.13);
	backdrop-filter: blur(16px);
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.time-label {
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

#clock {
	margin-top: 4px;
	font-size: 38px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.06em;
}

#date {
	margin-top: 5px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 14px;
	text-transform: capitalize;
}

.chips {
	display: none;
}

.form-panel {
	position: relative;
	z-index: 2;
	width: 100%;
	margin: 0;
	padding: 0;
}

.form-card {
	width: 100%;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.78);
	border-radius: 28px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 247, 0.94)),
		radial-gradient(circle at top right, rgba(217, 154, 43, 0.18), transparent 34%);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
	backdrop-filter: blur(18px);
}

.mobile-brand {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 26px;
}

.logo-login {
	display: block;
	width: min(230px, 72%);
	height: auto;
	object-fit: contain;
}

.form-heading {
	margin-bottom: 24px;
}

.eyebrow {
	width: fit-content;
	margin: 0 0 16px;
	padding: 8px 12px;
	border: 1px solid #d7eee7;
	border-radius: 999px;
	background: #eef8f4;
	color: var(--brand-dark);
	font-size: 12px;
	font-weight: 850;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.form-heading h2 {
	margin: 0;
	color: var(--text);
	font-size: clamp(29px, 8vw, 38px);
	line-height: 1.02;
	letter-spacing: -0.055em;
}

.form-heading p {
	margin: 12px 0 0;
	color: var(--muted);
	line-height: 1.55;
}

form {
	display: grid;
	gap: 18px;
}

.field label {
	display: block;
	margin-bottom: 8px;
	color: #1f3344;
	font-size: 14px;
	font-weight: 800;
}

.input-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 56px;
	padding: 0 15px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: #fff;
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

.input-wrap:focus-within {
	border-color: var(--focus);
	box-shadow: 0 0 0 4px rgba(242, 184, 75, 0.22);
}

.input-wrap svg {
	flex: 0 0 auto;
	color: var(--brand);
}

input:not([type="checkbox"]) {
	width: 100%;
	height: 54px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text);
	font: inherit;
}

input::placeholder {
	color: #98a3ad;
}

.toggle-password {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: var(--brand-dark);
	font: inherit;
	font-size: 13px;
	font-weight: 850;
	cursor: pointer;
}

.options {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
}

.remember {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	color: #4b5563;
	cursor: pointer;
}

.remember input {
	width: 18px;
	height: 18px;
	accent-color: var(--brand);
}

a {
	color: var(--brand-dark);
	font-weight: 800;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.btn-login {
	width: 100%;
	min-height: 58px;
	border: 0;
	border-radius: 18px;
	background:
		linear-gradient(135deg, var(--brand), var(--brand-dark) 70%, var(--brand-2) 145%);
	color: #fff;
	font: inherit;
	font-weight: 900;
	letter-spacing: -0.01em;
	cursor: pointer;
	box-shadow: 0 16px 32px rgba(6, 75, 61, 0.24);
	transition:
		transform 0.16s ease,
		box-shadow 0.16s ease,
		filter 0.16s ease;
}

.btn-login:hover {
	transform: translateY(-1px);
	box-shadow: 0 20px 40px rgba(6, 75, 61, 0.3);
	filter: saturate(1.08);
}

.btn-login:focus-visible,
.toggle-password:focus-visible,
a:focus-visible {
	outline: 4px solid rgba(242, 184, 75, 0.55);
	outline-offset: 3px;
}

.secondary {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-top: 20px;
}

.mini-card {
	padding: 15px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: #fff;
}

.mini-card b {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
}

.mini-card span {
	display: block;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.35;
}

.legal {
	margin: 24px 0 0;
	color: #8b95a1;
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
}

.error-message {
	margin-bottom: 16px;
	padding: 12px 14px;
	border: 1px solid #f8d1ce;
	border-radius: 14px;
	background: #fff2f1;
	color: var(--danger);
	font-size: 14px;
	font-weight: 700;
}

@media (min-width: 560px) {
	.form-panel {
		padding-inline: 24px;
	}

	.form-card {
		padding: 32px;
	}

	.options {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.secondary {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 920px) {
	body {
		display: grid;
		place-items: center;
		padding: 32px;
	}

	.login-page {
		width: min(1120px, 100%);
		min-height: auto;
		display: block;
		padding: 0;
	}

	.login-shell {
		width: 100%;
		max-width: none;
		min-height: 680px;
		display: grid;
		grid-template-columns: 1.06fr 0.94fr;
		grid-template-rows: none;
		border: 1px solid rgba(255, 255, 255, 0.2);
		border-radius: 38px;
		background: rgba(255, 255, 255, 0.13);
		box-shadow: var(--shadow);
		backdrop-filter: blur(18px);
		overflow: hidden;
	}

    	.mobile-brand {
		display: none;
	}

	.hero-panel {
		position: relative;
		min-height: 680px;
		padding: 44px;
		color: #fff;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		overflow: hidden;
		isolation: isolate;
	}

	.hero-panel::before {
		background:
			linear-gradient(140deg, rgba(3, 26, 40, 0.84), rgba(5, 82, 66, 0.62)),
			radial-gradient(circle at 20% 20%, rgba(217, 154, 43, 0.28), transparent 42%),
			radial-gradient(circle at 82% 78%, rgba(11, 128, 99, 0.35), transparent 46%),
			url("assets/muralJaen.jpg") center / cover no-repeat;
	}

	.hero-panel::after {
		width: 380px;
		height: 380px;
		right: -170px;
		bottom: -150px;
		border-width: 70px;
	}

	.logo-box {
		width: 66px;
		height: 66px;
		border-radius: 20px;
	}

	.brand-copy strong {
		font-size: 19px;
	}

	.brand-copy span {
		font-size: 14px;
	}

	.hero-content {
		margin-top: auto;
	}

	.hero-panel h1 {
		font-size: clamp(48px, 5vw, 72px);
	}

	.hero-panel p {
		font-size: 18px;
	}

	.time-card {
		width: min(360px, 100%);
		margin-top: 34px;
		padding: 22px;
		border-radius: 24px;
	}

	#clock {
		margin-top: 8px;
		font-size: 52px;
	}

	.chips {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
		margin-top: 24px;
	}

	.chips span {
		padding: 9px 12px;
		border: 1px solid rgba(255, 255, 255, 0.18);
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.14);
		color: rgba(255, 255, 255, 0.86);
		font-size: 14px;
	}

	.form-panel {
		display: flex;
		flex-direction: column;
		justify-content: center;
		margin-top: 0;
		padding: 44px;
		background:
			linear-gradient(180deg, #fff, #f7faf9),
			radial-gradient(circle at top right, rgba(217, 154, 43, 0.14), transparent 36%);
	}

	.form-card {
		max-width: 430px;
		margin: auto;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		backdrop-filter: none;
	}
}

@media (max-width: 380px) {
	.form-card {
		padding: 20px;
	}

	.input-wrap {
		padding-inline: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}