*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	height: 100%;
	color-scheme: light !important;
}

body {
	color-scheme: light !important;
	font-family: 'DM Sans', sans-serif;
	min-height: 100%;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--light) !important;
	background: var(--light) !important;
	overflow-x: hidden;
	overflow-y: auto;
	position: relative;
	padding: 16px 0;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	background: radial-gradient(
			ellipse 90% 70% at 72% 48%,
			rgba(0, 0, 0, 0.03),
			transparent 60%
		),
		radial-gradient(
			ellipse 55% 85% at 8% 82%,
			rgba(0, 0, 0, 0.02),
			transparent 55%
		),
		radial-gradient(
			ellipse 40% 40% at 50% 10%,
			rgba(0, 0, 0, 0.02),
			transparent 70%
		);
	pointer-events: none;
	z-index: 0;
}

body::after {
	content: '';
	position: fixed;
	inset: 0;
	background-image: linear-gradient(rgba(0, 0, 0, 0.018) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 0, 0, 0.018) 1px, transparent 1px);
	background-size: 48px 48px;
	pointer-events: none;
	z-index: 0;
}

.login-container {
	position: relative;
	z-index: 1;
	display: flex;
	width: 100%;
	max-width: 960px;
	margin: 0 16px;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 32px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(0, 0, 0, 0.06);
	animation: fadeInUp 0.7s cubic-bezier(0.22, 0.9, 0.36, 1) both;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(28px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.login-column {
	flex: 0 0 360px;
	background: #ffffff !important;
	color: var(--text) !important;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px 36px 32px;
	border-right: 1px solid rgba(0, 0, 0, 0.08);
	position: relative;
}

.login-column::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	border-radius: 20px 20px 0 0;
}

.login-body {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.brand-area {
	width: 100%;
	display: flex;
	align-items: center;
	margin-bottom: 28px;
}

.brand-area img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover;
	border-radius: 14px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(0, 0, 0, 0.07);
	background: #f9fafb;
	padding: 4px;
	display: block;
}

.img-fluid-perzonalized {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
}

.login-heading {
	font-family: 'Sora', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: var(--text) !important;
	margin-bottom: 4px;
	letter-spacing: -0.02em;
}

.login-subheading {
	font-size: 13px;
	color: var(--text) !important;
	opacity: 0.55;
	margin-bottom: 24px;
	font-weight: 400;
}

.input-field {
	position: relative;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	background: var(--light) !important;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 10px;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.input-field:focus-within {
	border-color: var(--primary);
	background: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.07);
}

.input-field .field-icon {
	flex-shrink: 0;
	width: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(0, 0, 0, 0.28);
	font-size: 13px;
	pointer-events: none;
	transition: color 0.2s;
}

.input-field:focus-within .field-icon {
	color: var(--primary);
}

.input-box {
	flex: 1;
	min-width: 0;
	padding: 11px 14px 11px 0;
	background: transparent !important;
	border: none;
	color: var(--text) !important;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	outline: none;
	-webkit-text-fill-color: var(--text) !important;
}

.input-box::placeholder {
	color: rgba(0, 0, 0, 0.3) !important;
	-webkit-text-fill-color: rgba(0, 0, 0, 0.3) !important;
	opacity: 1;
}

.input-box:-webkit-autofill,
.input-box:-webkit-autofill:hover,
.input-box:-webkit-autofill:focus,
.input-box:-webkit-autofill:active {
	-webkit-box-shadow: 0 0 0 40px #ffffff inset !important;
	-webkit-text-fill-color: var(--text) !important;
	caret-color: var(--text);
}

.btn-login {
	width: 100%;
	padding: 12px;
	margin-top: 4px;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	border: none;
	border-radius: 10px;
	color: #fff;
	font-family: 'Sora', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.18s, box-shadow 0.2s, filter 0.2s;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18),
		0 1px 0 rgba(255, 255, 255, 0.15) inset;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn-login:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.btn-login:active {
	transform: translateY(0);
	filter: brightness(1);
}

.tratamiento-datos-container {
	margin-top: 14px;
}

.checkbox-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.checkbox-wrapper input[type='checkbox'] {
	margin-top: 2px;
	accent-color: var(--primary);
	flex-shrink: 0;
}

.checkbox-wrapper label {
	font-size: 12px;
	color: var(--text);
	opacity: 0.55;
	line-height: 1.5;
	cursor: pointer;
}

.checkbox-wrapper label a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 500;
	opacity: 1;
}

.checkbox-wrapper label a:hover {
	text-decoration: underline;
}

.mensaje-tratamiento {
	font-size: 12px;
	color: var(--text);
	opacity: 0.55;
	line-height: 1.5;
	margin-top: 8px;
}

.forgot-password {
	display: inline-block;
	margin-top: 12px;
	font-size: 12px;
	color: var(--text);
	opacity: 0.55;
	text-decoration: none;
	transition: color 0.2s, opacity 0.2s;
}

.forgot-password:hover {
	color: var(--primary);
	opacity: 1;
}

.powered-by {
	margin-top: 28px;
	padding-top: 16px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 11px;
	color: var(--text);
	opacity: 0.75;
	text-align: center;
	line-height: 1.8;
}

.powered-by a {
	color: var(--text);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s;
}

.powered-by a:hover {
	color: var(--primary);
	opacity: 1;
}

.device-icons {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 2px;
	color: rgb(0, 0, 0);
}

.device-icons i {
	font-size: 13px;
}

.ip-info {
	font-size: 10px;
	color: rgba(0, 0, 0, 0.18);
	letter-spacing: 0.05em;
}

.services-column {
	flex: 1;
	background: var(--light) !important;
	padding: 40px 36px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.services-header {
	margin-bottom: 28px;
}

.services-eyebrow {
	font-family: 'Sora', sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text);
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.services-eyebrow::after {
	content: '';
	flex: 1;
	max-width: 40px;
	height: 1px;
	background: var(--text);
	opacity: 0.35;
}

.services-title {
	font-family: 'Sora', sans-serif;
	font-size: 26px;
	font-weight: 700;
	color: var(--text) !important;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.services-title span {
	background: linear-gradient(90deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.services-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.service-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	background: #ffffff !important;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	opacity: 0;
	transform: translateY(12px);
	animation: serviceIn 0.5s cubic-bezier(0.22, 0.9, 0.36, 1) forwards;
	transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.service-item:hover {
	background: var(--light) !important;
	border-color: var(--primary);
	transform: translateY(-1px) !important;
}

.service-item:nth-child(1) { animation-delay: 0.15s; }
.service-item:nth-child(2) { animation-delay: 0.25s; }
.service-item:nth-child(3) { animation-delay: 0.35s; }
.service-item:nth-child(4) { animation-delay: 0.45s; }
.service-item:nth-child(5) { animation-delay: 0.55s; }
.service-item:nth-child(6) { animation-delay: 0.65s; }
.service-item:nth-child(7) { animation-delay: 0.75s; }
.service-item:nth-child(8) { animation-delay: 0.85s; }

@keyframes serviceIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.service-icon-wrap {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	display: flex;
	align-items: center;
	justify-content: center;
}

.service-icon {
	font-size: 16px;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}

.service-text {
	font-size: 12.5px;
	color: var(--text) !important;
	line-height: 1.45;
	font-weight: 400;
	padding-top: 2px;
}

@media (max-width: 820px) {
	body {
		align-items: flex-start;
		padding: 20px 0 32px;
	}
	.login-container {
		flex-direction: column;
		max-width: 480px;
		width: calc(100% - 24px);
		margin: 0 12px;
	}
	.login-column {
		flex: none;
		border-right: none;
		border-bottom: 1px solid rgba(0, 0, 0, 0.08);
		padding: 32px 28px 28px;
	}
	.login-column::before {
		border-radius: 20px 20px 0 0;
	}
	.services-column {
		padding: 28px 28px 32px;
	}
	.services-grid {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}
	.service-item {
		padding: 11px;
	}
}

@media (max-width: 520px) {
	body {
		padding: 0;
	}
	.login-container {
		width: 100%;
		margin: 0;
		border-radius: 0;
		box-shadow: none;
		min-height: 100dvh;
	}
	.services-grid {
		grid-template-columns: 1fr;
	}
	.brand-area img {
		height: 52px;
	}
	.login-heading {
		font-size: 19px;
	}
	.login-column {
		padding: 28px 20px 24px;
	}
	.services-column {
		padding: 24px 20px 32px;
	}
}

@media (prefers-color-scheme: dark) {
	html {
		color-scheme: light !important;
	}
	body {
		background-color: var(--light) !important;
		color: var(--text) !important;
	}
	.login-column {
		background: #ffffff !important;
		color: var(--text) !important;
	}
	.login-heading {
		color: var(--text) !important;
	}
	.login-subheading {
		color: var(--text) !important;
	}
	.services-column {
		background: var(--light) !important;
	}
	.services-title {
		color: var(--text) !important;
	}
	.service-item {
		background: #ffffff !important;
		border-color: rgba(0, 0, 0, 0.08);
	}
	.service-item:hover {
		background: var(--light) !important;
	}
	.service-text {
		color: var(--text) !important;
	}
	.input-field {
		background: var(--light) !important;
		border-color: rgba(0, 0, 0, 0.14);
	}
	.input-box {
		color: var(--text) !important;
		-webkit-text-fill-color: var(--text) !important;
	}
	.input-box::placeholder {
		color: rgba(0, 0, 0, 0.3) !important;
		-webkit-text-fill-color: rgba(0, 0, 0, 0.3) !important;
	}
	.input-box:-webkit-autofill,
	.input-box:-webkit-autofill:hover,
	.input-box:-webkit-autofill:focus {
		-webkit-box-shadow: 0 0 0 40px #ffffff inset !important;
		-webkit-text-fill-color: var(--text) !important;
	}
	.input-field:focus-within {
		background: #ffffff !important;
	}
	.checkbox-wrapper label {
		color: var(--text);
	}
	.forgot-password {
		color: var(--text);
	}
	.powered-by {
		color: var(--text);
	}
	.powered-by a {
		color: var(--text);
	}
	.brand-text {
		color: var(--text);
	}
	.services-eyebrow {
		color: var(--text);
	}
}