/**
 * OBSERVAFEN - Login shell (split-screen institutional)
 * Layout general: panel visual (mapa) a la izquierda + panel de acceso a la derecha.
 * Este archivo ES el que carga el login (loginUser.php).
 */
* {
	margin: 0;
	padding: 0;
	border: none;
	outline: none;
	box-sizing: border-box;
}

html, body {
	height: 100%;
	width: 100%;
}

body {
	overflow: hidden;
	margin: 0;
	padding: 0;
	font-family: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
	font-size: 16px;
	color: #1e293b;
	background-color: #F7F9FB;
}

/* ── Split-screen ─────────────────────────────────────────────── */

#wrapper {
	display: flex;
	width: 100%;
	height: 100vh;
	align-items: stretch;
	position: relative;
	background-color: #F7F9FB;
}

/* Panel visual (izquierda): identidad institucional sin mapa */
.login-visual {
	flex: 1 1 55%;
	display: flex;
	align-items: flex-end;
	position: relative;
	min-height: 100vh;
	background: linear-gradient(150deg, #003366 0%, #0a4d8f 55%, #1565c0 100%);
	overflow: hidden;
}

/* Patrón geométrico sutil (anillos concéntricos) */
.login-visual::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.10) 0, rgba(255, 255, 255, 0.10) 2px, transparent 2px),
		radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 2px, transparent 2px);
	background-size: 180px 180px;
	pointer-events: none;
}

/* Glow decorativo en la esquina superior derecha del panel */
.login-visual::after {
	content: '';
	position: absolute;
	top: -20%;
	right: -10%;
	width: 60%;
	height: 60%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(77, 163, 255, 0.35) 0%, rgba(77, 163, 255, 0) 70%);
	pointer-events: none;
	z-index: 0;
}

.login-visual-inner {
	position: relative;
	z-index: 1;
	padding: 3rem 3.5rem;
	max-width: 560px;
	color: #ffffff;
}

.login-visual-brand {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 2.5rem;
}

.login-visual-title {
	font-size: 1.9rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.1;
}

.login-visual-subtitle {
	font-size: 0.9rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
}

.login-visual-message h2 {
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 0.75rem;
	color: #ffffff;
}

.login-visual-message p {
	font-size: 0.92rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.85);
}

/* Panel de acceso (derecha) */
.login-panel {
	flex: 1 1 45%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background-color: #F7F9FB;
}

/* ── Formulario ───────────────────────────────────────────────── */

.login-form {
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	position: relative;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(16, 24, 40, 0.10);
	padding: 2.25rem 2rem 2rem;
	overflow: hidden;
}

/* Franja accent azul institucional en la parte superior de la tarjeta */
.login-form::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #003366, #0a4d8f);
}

.login-form-brand {
	margin-bottom: 1.75rem;
	text-align: center;
}

.login-form-brand h1 {
	font-family: 'Inter', sans-serif;
	font-size: 1.6rem;
	font-weight: 700;
	color: #111827;
	letter-spacing: 0.01em;
	margin-bottom: 0.35rem;
}

.login-form-subtitle {
	font-family: 'Inter', sans-serif;
	font-size: 0.82rem;
	font-weight: 400;
	color: #64748b;
	line-height: 1.4;
}

.login-form .content {
	padding: 0;
}

.login-form .footer {
	padding: 0;
	margin-top: 0.25rem;
	overflow: hidden;
}

/* ── Tipografía / campos (complemento de login.css) ───────────── */

#login-title {
	display: block;
}

/* Pantallas pequeñas: el panel visual se reduce a una franja superior */
@media (max-width: 820px) {
	#wrapper {
		flex-direction: column;
	}

	.login-visual {
		flex: 1 1 34%;
		min-height: 0;
		align-items: center;
		background-position: center;
	}

	.login-visual-inner {
		padding: 1.5rem;
		text-align: center;
		max-width: 100%;
	}

	.login-visual-message {
		display: none;
	}

	.login-visual-brand {
		margin-bottom: 0;
	}

	.login-panel {
		flex: 1 1 66%;
	}

	.login-form {
		max-width: 400px;
	}
}