/* Source Sans Pro (misma fuente que el panel), respaldo si Inter no carga */
@font-face { font-family: "Source Sans Pro"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/sourceSans400.ttf) format("truetype"); }
@font-face { font-family: "Source Sans Pro"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/sourceSans600.ttf) format("truetype"); }
@font-face { font-family: "Source Sans Pro"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/sourceSans700.ttf) format("truetype"); }
/* CallMarket — inicio de sesión a pantalla partida (2026-09-09)
   Izquierda: foto con velo navy y texto BLANCO. Derecha: fondo claro y texto OSCURO. Nunca al revés. */
:root {
	--cm-navy: #0b1a33;
	--cm-verde: #00d9a3;      /* acento del sitio callmarket.cc */
	--cm-verde-btn: #059669;  /* botón (verde esmeralda del sitio) */
	--cm-verde-btn-hover: #047857;
	--cm-texto: #1c1f24;
	--cm-texto-suave: #5c6470;
	--cm-borde: #d9dee5;
	--cm-fondo-claro: #f6f8fb;
	--cm-rojo: #b3261e;
	--cm-rojo-bg: #fdecec;
	--cm-radio: 12px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body.cm-login {
	font-family: "Inter", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px; color: var(--cm-texto); background: var(--cm-fondo-claro);
	-webkit-font-smoothing: antialiased;
}

/* ---- Rejilla: mitad y mitad ---- */
.cm-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

/* ---- Lado izquierdo: imagen ---- */
.cm-hero { position: relative; overflow: hidden; background: var(--cm-navy); color: #fff; }
.cm-hero-img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: 60% 40%; display: block;
}
.cm-hero-shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(to bottom, rgba(11, 26, 51, 0.55) 0%, rgba(11, 26, 51, 0.05) 30%, rgba(11, 26, 51, 0.10) 55%, rgba(11, 26, 51, 0.90) 100%);
}
.cm-hero-top { position: absolute; top: 36px; left: 44px; }
.cm-logo { height: 52px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); }
.cm-hero-text {
	position: absolute; left: 44px; right: 44px; bottom: 44px; max-width: 520px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.cm-hero-text h2 { margin: 0 0 10px; font-size: 30px; line-height: 1.2; font-weight: 700; color: #fff; }
.cm-hero-text p { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.92); }
.cm-hero-text h2::before {
	content: ""; display: block; width: 44px; height: 4px; border-radius: 2px;
	background: var(--cm-verde); margin-bottom: 16px;
}

/* ---- Lado derecho: formulario ---- */
.cm-side {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 40px 24px 28px; background: var(--cm-fondo-claro);
}
.cm-box {
	width: 100%; max-width: 420px; background: #fff;
	border: 1px solid #e6eaf0; border-radius: 16px; padding: 36px 36px 28px;
	box-shadow: 0 10px 30px rgba(11, 26, 51, 0.08);
}
.cm-kicker {
	margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
	text-transform: uppercase; color: var(--cm-verde-btn);
}
.cm-box h1 { margin: 0 0 6px; font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--cm-texto); }
.cm-sub { margin: 0 0 22px; color: var(--cm-texto-suave); font-size: 15px; }

.cm-error {
	display: flex; gap: 10px; align-items: flex-start;
	background: var(--cm-rojo-bg); color: var(--cm-rojo);
	border: 1px solid #f3c1c1; border-radius: 10px;
	padding: 10px 12px; margin-bottom: 18px; font-size: 14px; line-height: 1.35;
}
.cm-error .fa { margin-top: 2px; }

.cm-label {
	display: block; font-size: 13px; font-weight: 600;
	color: #3d4450; margin: 0 0 6px; letter-spacing: 0.02em;
}
.cm-field { position: relative; margin-bottom: 16px; }
.cm-field > .fa {
	position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
	color: #8b949e; font-size: 15px; pointer-events: none;
}
.cm-field input {
	width: 100%; height: 48px; padding: 0 44px 0 42px;
	font: inherit; color: var(--cm-texto);
	background: #fff; border: 1px solid var(--cm-borde); border-radius: var(--cm-radio);
	outline: none; transition: border-color .15s, box-shadow .15s;
}
.cm-field input::placeholder { color: #a3abb5; opacity: 1; }
.cm-field input:focus { border-color: var(--cm-verde-btn); box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.22); }
.cm-field input:focus + .cm-eye, .cm-field input:focus ~ .fa { color: var(--cm-verde-btn); }
.cm-eye {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	height: 36px; width: 36px; border: 0; border-radius: 8px;
	background: transparent; color: #8b949e; cursor: pointer; font-size: 15px;
}
.cm-eye:hover, .cm-eye:focus-visible { background: #eef1f4; color: var(--cm-texto); outline: none; }
.cm-caps { margin: -8px 0 12px; font-size: 13px; color: #9a5b00; }
.cm-remember {
	display: flex; align-items: center; gap: 8px;
	margin: 2px 0 14px; font-size: 14px; color: var(--cm-texto-suave); cursor: pointer; user-select: none;
}
.cm-remember input { width: 17px; height: 17px; margin: 0; accent-color: var(--cm-verde-btn); cursor: pointer; }

.cm-btn {
	width: 100%; height: 48px; margin-top: 6px;
	font: inherit; font-size: 16px; font-weight: 600; letter-spacing: 0.01em;
	color: #fff; background: var(--cm-verde-btn);
	border: 0; border-radius: var(--cm-radio); cursor: pointer;
	transition: background .15s, transform .05s;
}
.cm-btn:hover { background: var(--cm-verde-btn-hover); }
.cm-btn:active { transform: translateY(1px); }
.cm-btn:focus-visible { outline: 3px solid rgba(5, 150, 105, 0.45); outline-offset: 2px; }
.cm-btn:disabled { opacity: .7; cursor: default; }

.cm-ayuda { margin: 18px 0 0; font-size: 13px; color: var(--cm-texto-suave); text-align: center; }

.cm-foot {
	margin-top: 24px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; align-items: center;
	color: var(--cm-texto-suave); font-size: 13px;
}
.cm-foot a { color: #3d4450; text-decoration: underline; text-underline-offset: 3px; }
.cm-foot a:hover { color: var(--cm-texto); }
.cm-seguro { color: var(--cm-verde-btn); font-weight: 600; }

/* ---- Pantallas medianas y móvil: la foto pasa a ser una franja arriba ---- */
@media (max-width: 900px) {
	.cm-split { grid-template-columns: 1fr; min-height: auto; }
	.cm-hero { height: 200px; }
	.cm-hero-img { object-position: 45% 60%; }
	.cm-hero-shade { background: linear-gradient(to bottom, rgba(11, 26, 51, 0.55) 0%, rgba(11, 26, 51, 0.25) 50%, rgba(11, 26, 51, 0.85) 100%); }
	.cm-hero-top { top: 22px; left: 22px; }
	.cm-logo { height: 40px; }
	.cm-hero-text { left: 22px; right: 22px; bottom: 18px; }
	.cm-hero-text h2 { font-size: 20px; margin-bottom: 0; }
	.cm-hero-text h2::before { width: 32px; height: 3px; margin-bottom: 10px; }
	.cm-hero-text p { display: none; }
	.cm-side { padding: 24px 16px 24px; justify-content: flex-start; min-height: calc(100vh - 200px); }
	.cm-box { padding: 26px 20px 22px; border-radius: 14px; }
}
@media (min-width: 901px) and (max-width: 1150px) {
	.cm-split { grid-template-columns: 42% 58%; }
	.cm-hero-text h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
