/* ═══════════════════════════════════════════════
   GICELL ACADEMY — Auth split-view (login / registro)
   Monocromo + dorado. Usa los tokens de gicell-tokens.css.
   ═══════════════════════════════════════════════ */

/* Root full-screen: cubre todo el chrome del Canvas */
.gcauth {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	grid-template-columns: 48% 52%;
	background: var(--paper);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
}

/* Honeypot — visualmente oculto, accesible para bots pero no para usuarios */
.gcauth__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ── Aside (columna izquierda, imagen) ───────────────────── */
.gcauth__aside {
	position: relative;
	overflow: hidden;
	background: var(--black);
}

.gcauth__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.7);
}

.gcauth__aside-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(14, 14, 14, 0.45) 0%,
		rgba(14, 14, 14, 0.55) 45%,
		rgba(14, 14, 14, 0.9) 100%
	);
}

.gcauth__aside-inner {
	position: relative;
	z-index: 2;
	height: 100%;
	padding: 48px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: #fff;
}

.gcauth__aside-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.gcauth__logo {
	height: 34px;
	width: auto;
	display: block;
}

.gcauth__back {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	font-size: 13px;
	letter-spacing: 0.02em;
	transition: color 0.2s;
	white-space: nowrap;
}

.gcauth__back:hover {
	color: #fff;
}

.gcauth__aside-copy {
	max-width: 420px;
}

.gcauth__eyebrow {
	display: block;
	color: var(--gold);
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-size: 12px;
	margin-bottom: 14px;
}

.gcauth__aside-title {
	font-family: var(--font-display);
	font-size: 34px;
	color: #fff;
	line-height: 1.25;
	font-weight: 500;
	margin: 0 0 14px;
}

.gcauth__aside-text {
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

/* ── Main (columna derecha, formulario) ──────────────────── */
.gcauth__main {
	background: var(--paper);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	padding: 48px;
}

.gcauth__panel {
	width: 100%;
	max-width: 380px;
}

.gcauth__title {
	font-family: var(--font-display);
	font-size: 32px;
	font-weight: 500;
	color: var(--ink);
	line-height: 1.2;
	margin: 0 0 8px;
}

.gcauth__subtitle {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 28px;
}

/* Bloque de errores — rojo sobrio */
.gcauth__errors {
	background: rgba(180, 50, 50, 0.08);
	border-left: 3px solid #b43232;
	color: #8a2b2b;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.5;
	margin-bottom: 22px;
}

.gcauth__errors p {
	margin: 0;
}

.gcauth__errors p + p {
	margin-top: 6px;
}

/* Campos */
.gcauth__field {
	margin-bottom: 18px;
}

.gcauth__label {
	display: block;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 8px;
}

.gcauth__input {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--line);
	border-radius: 8px;
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--ink);
	background: var(--white);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.gcauth__input:focus {
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.15);
	outline: none;
}

.gcauth__hint {
	display: block;
	margin-top: 7px;
	font-size: 12px;
	color: var(--muted);
	line-height: 1.5;
}

/* Checkbox "Recuérdame" */
.gcauth__check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--ink-2);
	margin-bottom: 22px;
	cursor: pointer;
}

.gcauth__check input {
	width: 16px;
	height: 16px;
	accent-color: var(--gold);
	cursor: pointer;
}

/* Botón principal */
.gcauth__btn {
	width: 100%;
	padding: 14px;
	background: var(--ink);
	color: var(--white);
	border: none;
	border-radius: 8px;
	font-family: var(--font-body);
	font-size: 14px;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background 0.2s;
}

.gcauth__btn:hover {
	background: var(--black-2);
}

/* Links alternativos */
.gcauth__alt {
	font-size: 13px;
	color: var(--muted);
	margin: 16px 0 0;
	text-align: center;
}

.gcauth__alt a {
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1px solid rgba(14, 14, 14, 0.35);
	transition: color 0.2s, border-color 0.2s;
}

.gcauth__alt a:hover {
	color: var(--gold);
	border-color: var(--gold);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
	.gcauth {
		grid-template-columns: 1fr;
		grid-template-rows: 200px 1fr;
	}

	.gcauth__aside {
		height: 200px;
	}

	.gcauth__aside-inner {
		padding: 24px;
	}

	.gcauth__aside-title {
		font-size: 24px;
		margin-bottom: 0;
	}

	/* En la banda superior compacta, ocultamos el subtexto para ganar aire */
	.gcauth__aside-text {
		display: none;
	}

	.gcauth__eyebrow {
		margin-bottom: 8px;
	}

	.gcauth__main {
		padding: 32px 24px 48px;
		align-items: flex-start;
	}
}

@media (max-width: 480px) {
	.gcauth__aside-inner {
		padding: 20px;
	}

	.gcauth__logo {
		height: 28px;
	}

	.gcauth__title {
		font-size: 28px;
	}
}
