:root {
	--blue-1: #083f8a;
	--blue-2: #06317a;
	--accent: #ff7a00;
	--card-bg: #ffffff;
	--muted: #8a96a3;
	--input-bg: #f6f8fb;
	--primary: #0b4fb2;
}

* {
	box-sizing: border-box
}

html,
body {
	height: 100%
}

body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
	background: #f3f5f7;
	color: #122737;
}

.wrap {
	min-height: 100vh;
	display: flex;
	align-items: stretch;
}

.left {
	flex: 1.05;
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 20%, transparent 40%), linear-gradient(180deg, var(--blue-1), var(--blue-2));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 40px;
}

.left-inner {
	max-width: 560px;
	text-align: center;
}

.brand-icon {
	margin: 0 auto 18px;
	background: transparent;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.brand-icon svg {
	width: 34px;
	height: 34px;
	fill: #fff
}

.brand-img {
	width: 200px;
	height: 200px;
	object-fit: contain;
	display: block
}

h1 {
	font-size: 36px;
	margin: 6px 0 10px;
	font-weight: 800
}

p.lead {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.8;
	font-weight: 400
}

.right {
	flex: 0.95;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 80px 40px;
}

.card {
	width: 420px;
	background: var(--card-bg);
	border-radius: 12px;
	padding: 32px;
	box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.card h2 {
	margin: 0 0 6px;
	font-size: 24px;
	text-align: center
}

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

label {
	display: block;
	font-weight: 600;
	margin: 12px 0 6px;
	font-size: 14px
}

.input {
	width: 100%;
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid #e6eef6;
	background: var(--input-bg);
	font-size: 14px;
	color: #22313f;
}

.input::placeholder {
	color: #9aa8b6
}

/* Overlay de carga para login */
.login-overlay {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.45);
	z-index: 9999
}

.login-box {
	background: #fff;
	padding: 18px 22px;
	border-radius: 10px;
	display: flex;
	gap: 12px;
	align-items: center;
	box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12)
}

.login-spinner {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 4px solid #e6eef6;
	border-top-color: var(--primary);
	animation: spin 1s linear infinite
}

@keyframes spin {
	to {
		transform: rotate(360deg)
	}
}

.btn {
	display: inline-block;
	width: 100%;
	padding: 12px 16px;
	border-radius: 10px;
	border: none;
	background: var(--primary);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	margin-top: 18px;
	box-shadow: 0 6px 16px rgba(11, 79, 178, 0.18);
}

.small-muted {
	font-size: 13px;
	color: var(--muted);
	text-align: center;
	margin-top: 14px
}

/* small screens */
@media (max-width:900px) {
	.wrap {
		flex-direction: column
	}

	/* Reducir altura del panel azul en móvil */
	.left {
		order: 1;
		padding: 28px 20px;
		min-height: 36vh;
		display: flex;
		align-items: center;
		justify-content: center
	}

	.left-inner {
		max-width: 520px
	}

	.left h1 {
		font-size: 28px;
		margin: 8px 0 8px
	}

	.left p.lead {
		font-size: 15px;
		line-height: 1.6
	}

	.brand-img {
		width: 80px;
		height: 80px
	}

	.right {
		order: 2;
		padding: 28px 20px
	}

	.card {
		width: 100%;
		max-width: 520px
	}
}

/* notebook / laptop screens: hacer el formulario más grande y cómodo */
@media (min-width:1024px) {
	.right {
		padding: 100px 60px
	}

	.card {
		width: 560px;
		padding: 40px;
		border-radius: 14px;
	}

	.card h2 {
		font-size: 28px
	}

	.card p.subtitle {
		font-size: 15px
	}

	.input {
		padding: 14px 16px;
		font-size: 15px
	}

	.btn {
		padding: 14px 18px;
		font-size: 16px
	}
}