/**
 * ClickAH! Login — Estilos de la pantalla de acceso
 * Minimalista · fondo shader animado (Warp) · paleta ClickAH!
 */

:root {
	--ck-rosa:          #DD9090; /* Rosa ClickAH! — principal */
	--ck-rosa-claro:    #F2C4C4; /* Fondos suaves, hover */
	--ck-rosa-piel:     #FDF0F0; /* Fondo de página */
	--ck-rosa-profundo: #C47070; /* Acentos fuertes, CTA */
	--ck-marron:        #4A3535; /* Texto principal */
	--ck-rosa-gris:     #9E7070; /* Texto secundario */
	--ck-rosa-menta:    #F7E8E8; /* Badges, tags */

	--ck-radius:    18px;
	--ck-radius-sm: 10px;
	--ck-pad:       32px;
	--ck-border:    rgba(158, 112, 112, 0.18);
	--ck-ease:      cubic-bezier(0.16, 1, 0.3, 1);
	--ck-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
	--ck-shadow:    0 30px 70px -22px rgba(74, 53, 53, 0.45);
}

/* -------------------------------------------------------------------------
 *  Lienzo / fondo shader
 * ---------------------------------------------------------------------- */

body.clickah-login-page {
	background: var(--ck-rosa-piel);
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow: hidden;
	min-height: 100vh;
	margin: 0;
	/* Centra verticalmente el encabezado + tarjeta (wp-login.php no es flex). */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

/* WordPress envuelve algunos elementos; nos aseguramos de que no rompan el centrado. */
body.clickah-login-page #login {
	margin: 0 auto;
}

/* Contenedor del shader Warp (canvas a pantalla completa). */
#clickah-shader {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

#clickah-shader canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
}

/* Velo sutil para legibilidad de la tarjeta sobre el shader. */
.clickah-scrim {
	position: fixed;
	inset: 0;
	z-index: 0;
	background: radial-gradient( ellipse at center, rgba(253, 240, 240, 0.0) 30%, rgba(74, 53, 53, 0.12) 100% );
	pointer-events: none;
}

/* -------------------------------------------------------------------------
 *  Tarjeta (minimalista, cristal)
 * ---------------------------------------------------------------------- */

#login {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
	padding: 32px var(--ck-pad) 0;
	background: linear-gradient( 155deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.18) );
	backdrop-filter: saturate(150%) blur(14px);
	-webkit-backdrop-filter: saturate(150%) blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: var(--ck-radius);
	box-shadow: var(--ck-shadow),
	            inset 0 1px 0 rgba(255, 255, 255, 0.55),
	            inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	animation: ck-enter 1s var(--ck-ease) both;
}

@keyframes ck-enter {
	from { opacity: 0; transform: translateY(20px) scale(0.985); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo opcional (solo si se define en ajustes). */
#login h1 {
	margin: 0;
	padding: 0;
	height: 0;
	overflow: hidden;
}

#login h1 a {
	display: none;
	width: 100%;
	height: 56px;
	background-size: contain;
	background-position: center;
	margin: 0 auto 4px;
}

/* Encabezado FUERA de la tarjeta (sobre el shader), centrado. */
.clickah-brand {
	position: relative;
	z-index: 1;
	text-align: center;
	margin: 0 0 24px;
	width: 100%;
	max-width: 460px;
	box-sizing: border-box;
}

.clickah-brand__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ck-rosa-profundo);
	margin-bottom: 12px;
}

.clickah-brand__icon svg {
	display: block;
}

/* Logo en badge de cristal (destaca sobre el shader sin importar el color). */
.clickah-brand__logo-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin: 0 auto 18px;
	padding: 14px;
	box-sizing: border-box;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.6);
	box-shadow: 0 14px 34px -14px rgba(74, 53, 53, 0.45),
	            inset 0 1px 0 rgba(255, 255, 255, 0.8);
	backdrop-filter: saturate(150%) blur(12px);
	-webkit-backdrop-filter: saturate(150%) blur(12px);
	animation: ck-enter 0.8s var(--ck-ease) both;
}

.clickah-brand__logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 48px;
	max-height: 48px;
	object-fit: contain;
}

.clickah-intro__badge .clickah-brand__logo {
	max-width: 60px;
	max-height: 60px;
}

.clickah-brand__eyebrow {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.07em;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--ck-rosa-gris);
	text-shadow: 0 1px 10px rgba(255, 255, 255, 0.5);
	animation: ck-enter 0.8s var(--ck-ease) 0.05s both;
}

.clickah-brand__eyebrow-name {
	color: var(--ck-rosa-profundo);
	font-weight: 700;
}

.clickah-brand__eyebrow-dot {
	margin: 0 5px;
	color: var(--ck-rosa);
}

.clickah-brand__title {
	margin: 0;
	font-size: clamp(26px, 7vw, 34px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--ck-marron);
	text-shadow: 0 2px 18px rgba(255, 255, 255, 0.5);
}

/* Animación blur-stagger letra a letra (estilo del componente de referencia). */
.ck-letter {
	display: inline-block;
	white-space: pre;
	opacity: 0;
	filter: blur(10px);
	animation: ck-blur-in 0.45s var(--ck-ease) forwards;
}

@keyframes ck-blur-in {
	to { opacity: 1; filter: blur(0); }
}

.clickah-brand__subtitle {
	margin: 8px 0 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--ck-marron);
	opacity: 0.78;
	text-shadow: 0 1px 12px rgba(255, 255, 255, 0.45);
	animation: ck-enter 0.8s var(--ck-ease) 0.55s both;
}

/* -------------------------------------------------------------------------
 *  Formulario
 * ---------------------------------------------------------------------- */

#loginform,
#registerform,
#lostpasswordform {
	position: relative;
	z-index: 1;
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	margin: 0;
	animation: ck-enter 1s var(--ck-ease) 0.12s both;
}

.login form label {
	font-size: 13px;
	font-weight: 600;
	color: var(--ck-marron);
	letter-spacing: 0.01em;
}

/* Ocultamos visualmente las etiquetas de usuario/contraseña que añade
   WordPress: el icono + el placeholder hacen de guía (estilo del componente
   de referencia). Se mantienen accesibles para lectores de pantalla. */
.login form > p:not(.forgetmenot):not(.submit) > label,
.login .user-pass-wrap > label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Sin etiqueta visible, el campo no necesita el margen superior de separación. */
.login form .input {
	margin-top: 0;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	margin: 7px 0 0;
	padding: 11px 14px;
	font-size: 15px;
	line-height: 1.3;
	/* WordPress fuerza monoespaciada en los campos password; igualamos la fuente. */
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	color: var(--ck-marron);
	background-color: rgba(255, 255, 255, 0.35);
	background-repeat: no-repeat;
	background-position: 14px center;
	background-size: 18px 18px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: var(--ck-radius-sm);
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
	transition: border-color 0.25s var(--ck-ease),
	            background-color 0.25s var(--ck-ease),
	            box-shadow 0.25s var(--ck-ease),
	            transform 0.25s var(--ck-ease);
}

.login form .input::placeholder,
.login input::placeholder {
	color: rgba(74, 53, 53, 0.45);
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
	background-color: rgba(255, 255, 255, 0.62);
	border-color: rgba(255, 255, 255, 0.9);
	box-shadow: 0 0 0 3px rgba(221, 144, 144, 0.28);
	outline: none;
	transform: translateY(-1px);
}

/* Iconos dentro de los campos (estilo del componente de referencia). */
#user_login.input,
#user_email.input {
	padding-left: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239E7070' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

#user_pass.input {
	padding-left: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239E7070' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

/* Espaciado entre campos (sustituye los márgenes nativos de los <p>). */
.login form p,
.login .user-pass-wrap,
.login .login-remember {
	margin: 0 0 18px;
}

/* Campo de contraseña: ojo (mostrar/ocultar) centrado verticalmente. */
.login .wp-pwd,
.clickah-pwd {
	position: relative;
}

.login .wp-pwd input,
.clickah-pwd input {
	padding-right: 46px;
}

/* Cuando nuestro propio ojo (.clickah-pwd__toggle) está activo, ocultamos el
   botón nativo de WordPress para que no queden dos superpuestos y para que el
   click caiga SIEMPRE en el nuestro (el nativo depende de user-profile.js y
   dashicons, que en producción fallan). !important porque user-profile.js
   revierte cualquier display en línea. */
.login .clickah-pwd--ready .wp-hide-pw {
	display: none !important;
}

.clickah-pwd__toggle {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 8px;
	color: var(--ck-rosa-gris);
	cursor: pointer;
	transition: color 0.2s var(--ck-ease), background 0.2s var(--ck-ease);
}

.login .button.wp-hide-pw .dashicons {
	margin: 0;
	width: 20px;
	height: 20px;
	font-size: 20px;
	vertical-align: middle;
}

.login .button.wp-hide-pw:hover,
.clickah-pwd__toggle:hover {
	color: var(--ck-rosa-profundo);
	background: var(--ck-rosa-menta);
}

.clickah-pwd__toggle svg {
	width: 18px;
	height: 18px;
	display: block;
}

.login .forgetmenot {
	margin-bottom: 4px;
}
.login .forgetmenot label {
	display: inline-block;
	vertical-align: middle;
	font-weight: 500;
	color: var(--ck-rosa-gris);
}

.login input[type="checkbox"] {
	border-radius: 6px;
	border: 1.5px solid var(--ck-rosa-claro);
	transition: all 0.25s var(--ck-ease);
}
.login input[type="checkbox"]:checked {
	background: var(--ck-rosa);
	border-color: var(--ck-rosa);
}
.login input[type="checkbox"]:checked::before {
	content: "";
	margin: -1px 0 0 -1px;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12l5 5L20 7' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: 14px;
	background-repeat: no-repeat;
	background-position: center;
}

/* -------------------------------------------------------------------------
 *  Botón principal
 * ---------------------------------------------------------------------- */

.login .button-primary,
.wp-core-ui .login .button-primary {
	width: 100%;
	margin-top: 2px;
	padding: 12px 20px;
	height: auto;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #fff;
	border: none;
	border-radius: var(--ck-radius-sm);
	background-color: var(--ck-rosa-profundo);
	background-image: linear-gradient( 100deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0) 38%,
		rgba(255, 255, 255, 0.35) 50%,
		rgba(255, 255, 255, 0) 62%,
		rgba(255, 255, 255, 0) 100% );
	background-size: 250% 100%;
	background-repeat: no-repeat;
	background-position: 150% 0;
	box-shadow: 0 1px 2px rgba(74, 53, 53, 0.12);
	cursor: pointer;
	text-shadow: none;
	animation: ck-sheen 4.5s linear infinite;
	transition: background-color 0.25s var(--ck-ease),
	            transform 0.25s var(--ck-spring),
	            box-shadow 0.25s var(--ck-ease);
}

@keyframes ck-sheen {
	0%   { background-position: 150% 0; }
	55%  { background-position: -50% 0; }
	100% { background-position: -50% 0; }
}

.login .button-primary:hover {
	background-color: #b56565;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px -8px rgba(196, 112, 112, 0.8);
}

.login .button-primary:active {
	transform: translateY(0) scale(0.99);
}

.login .button-primary:focus {
	box-shadow: 0 0 0 3px rgba(221, 144, 144, 0.35);
}

/* -------------------------------------------------------------------------
 *  Enlaces secundarios
 * ---------------------------------------------------------------------- */

/* Footer dentro de la tarjeta, con borde superior (estilo CardFooter). */
.login #nav {
	position: relative;
	z-index: 1;
	text-align: center;
	margin: 22px calc(-1 * var(--ck-pad)) 0;
	padding: 16px var(--ck-pad);
	border-top: 1px solid rgba(255, 255, 255, 0.4);
	font-size: 13px;
	color: var(--ck-rosa-gris);
}

.login #nav a,
.login #backtoblog a {
	color: var(--ck-rosa-profundo);
	font-size: 13px;
	font-weight: 600;
	transition: color 0.25s var(--ck-ease);
}

.login #nav a:hover,
.login #backtoblog a:hover {
	color: var(--ck-marron);
	text-decoration: underline;
}

.login #backtoblog {
	display: none;
}

.clickah-footer {
	position: relative;
	z-index: 1;
	text-align: center;
	margin-top: 14px;
	animation: ck-enter 1s var(--ck-ease) 0.24s both;
}

.clickah-footer__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.95) !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(74, 53, 53, 0.18);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: color 0.3s var(--ck-ease), background 0.3s var(--ck-ease), gap 0.3s var(--ck-ease);
}

.clickah-footer__link:hover {
	color: #fff !important;
	background: rgba(74, 53, 53, 0.32);
	gap: 10px;
}

.clickah-footer__link svg {
	transition: transform 0.3s var(--ck-ease);
}
.clickah-footer__link:hover svg {
	transform: translateX(2px);
}

/* -------------------------------------------------------------------------
 *  Mensajes
 * ---------------------------------------------------------------------- */

.login .message,
.login .success,
.login #login_error {
	position: relative;
	z-index: 1;
	border: none;
	border-radius: var(--ck-radius-sm);
	box-shadow: 0 8px 22px -10px rgba(74, 53, 53, 0.3);
	padding: 14px 18px;
	font-size: 14px;
	background: rgba(255, 255, 255, 0.92);
	animation: ck-shake 0.5s var(--ck-ease) both;
}

.login #login_error {
	border-left: 4px solid var(--ck-rosa-profundo);
	color: var(--ck-marron);
}

.login .message,
.login .success {
	border-left: 4px solid var(--ck-rosa);
	color: var(--ck-marron);
}

@keyframes ck-shake {
	0%   { transform: translateX(0); opacity: 0; }
	25%  { transform: translateX(-6px); opacity: 1; }
	50%  { transform: translateX(6px); }
	75%  { transform: translateX(-3px); }
	100% { transform: translateX(0); }
}

/* -------------------------------------------------------------------------
 *  Pantalla de bienvenida (intro) — clic en "Iniciar sesión" revela el form
 * ---------------------------------------------------------------------- */

.clickah-intro {
	display: none;
}

body.clickah-intro-active .clickah-intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 460px;
	box-sizing: border-box;
	padding: 0 8px;
}

/* Mientras la intro está activa, ocultamos el encabezado, la tarjeta y el pie. */
body.clickah-intro-active #login,
body.clickah-intro-active .clickah-brand,
body.clickah-intro-active .clickah-footer {
	display: none !important;
}

.clickah-intro__badge {
	width: 92px;
	height: 92px;
	margin: 0 0 26px;
	animation: ck-enter 0.7s var(--ck-ease) both;
}

.clickah-intro__title {
	margin: 0;
	font-size: clamp(46px, 13vw, 78px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	background: linear-gradient(135deg, var(--ck-rosa-profundo), var(--ck-rosa) 58%, var(--ck-rosa-claro));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-shadow: 0 6px 30px rgba(255, 255, 255, 0.3);
	animation: ck-enter 0.85s var(--ck-ease) 0.08s both;
}

.clickah-intro__tagline {
	margin: 16px 0 0;
	font-size: clamp(14px, 4vw, 17px);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ck-rosa-gris);
	text-shadow: 0 1px 10px rgba(255, 255, 255, 0.45);
	animation: ck-enter 0.85s var(--ck-ease) 0.16s both;
}

.clickah-intro__cta {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 36px;
	padding: 15px 36px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: var(--ck-rosa-profundo);
	border: none;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 16px 32px -12px rgba(196, 112, 112, 0.85);
	animation: ck-enter 0.85s var(--ck-ease) 0.26s both;
	transition: transform 0.3s var(--ck-spring),
	            box-shadow 0.3s var(--ck-ease),
	            background 0.25s var(--ck-ease);
}

.clickah-intro__cta:hover {
	transform: translateY(-2px);
	background: #b56565;
	box-shadow: 0 22px 40px -12px rgba(196, 112, 112, 0.95);
}
.clickah-intro__cta:active { transform: translateY(0) scale(0.98); }

.clickah-intro__cta svg { transition: transform 0.3s var(--ck-ease); }
.clickah-intro__cta:hover svg { transform: translateX(3px); }

.clickah-intro--leaving {
	animation: ck-intro-out 0.4s var(--ck-ease) forwards !important;
}
@keyframes ck-intro-out {
	to { opacity: 0; transform: translateY(-14px) scale(0.97); }
}

/* -------------------------------------------------------------------------
 *  Login en dos pasos (estilo Apple): correo → contraseña
 * ---------------------------------------------------------------------- */

/* Paso 1: solo correo + "Continuar". */
#loginform.ck-step-1 .user-pass-wrap,
#loginform.ck-step-1 .forgetmenot,
#loginform.ck-step-1 .submit,
#loginform.ck-step-1 .clickah-identity {
	display: none !important;
}

/* Paso 2: ocultamos el campo de correo y el botón continuar. */
#loginform.ck-step-2 .clickah-user-field,
#loginform.ck-step-2 .clickah-continue {
	display: none !important;
}

/* Animación de entrada al revelar el paso 2. */
#loginform.ck-step-2 .clickah-identity,
#loginform.ck-step-2 .user-pass-wrap,
#loginform.ck-step-2 .forgetmenot,
#loginform.ck-step-2 .submit {
	animation: ck-step-in 0.42s var(--ck-ease) both;
}

@keyframes ck-step-in {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}

#loginform .clickah-continue {
	width: 100%;
	margin-top: 16px;
}

/* Aseguramos separación bajo el campo de correo (algunos temas de WP la quitan). */
#loginform .clickah-user-field {
	margin: 0 0 4px;
}

/* Chip de identidad (correo introducido + cambiar). */
.clickah-identity {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	margin: 0 0 16px;
	border-radius: var(--ck-radius-sm);
	background: rgba(255, 255, 255, 0.42);
	border: 1px solid rgba(255, 255, 255, 0.55);
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.clickah-identity__icon {
	display: inline-flex;
	color: var(--ck-rosa-profundo);
}
.clickah-identity__icon svg { width: 18px; height: 18px; }

.clickah-identity__email {
	flex: 1;
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--ck-marron);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.clickah-identity__edit {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--ck-rosa-profundo);
	font-size: 13px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 8px;
	transition: color 0.2s var(--ck-ease), background 0.2s var(--ck-ease);
}
.clickah-identity__edit:hover {
	color: var(--ck-marron);
	background: var(--ck-rosa-menta);
}

/* Aviso (nudge) si intentan continuar sin correo. */
.clickah-shake { animation: ck-nudge 0.4s var(--ck-ease); }
@keyframes ck-nudge {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-7px); }
	40% { transform: translateX(7px); }
	60% { transform: translateX(-4px); }
	80% { transform: translateX(4px); }
}

/* -------------------------------------------------------------------------
 *  Responsive / accesibilidad
 * ---------------------------------------------------------------------- */

@media (max-width: 600px) {
	body.clickah-login-page { padding: 18px; }
	.clickah-brand { margin-bottom: 18px; }
	.clickah-brand__eyebrow { font-size: 10px; letter-spacing: 0.05em; }
}

@media (max-width: 420px) {
	:root { --ck-pad: 22px; }
	#login { padding: 26px var(--ck-pad) 0; }
}

/* -------------------------------------------------------------------------
 *  Haz de luz viajero + destellos de esquina (efecto del componente ref.)
 * ---------------------------------------------------------------------- */

.clickah-beams {
	position: absolute;
	inset: 0;
	border-radius: var(--ck-radius);
	overflow: hidden;
	pointer-events: none;
	z-index: 4;
}

.clickah-beam {
	position: absolute;
	opacity: 0;
	filter: blur(0.5px);
}

.clickah-beam--top,
.clickah-beam--bottom {
	height: 3px;
	width: 45%;
	background: linear-gradient(90deg, transparent, #fff, transparent);
	box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.9),
	            0 0 18px 4px rgba(221, 144, 144, 0.5);
}

.clickah-beam--left,
.clickah-beam--right {
	width: 3px;
	height: 45%;
	background: linear-gradient(180deg, transparent, #fff, transparent);
	box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.9),
	            0 0 18px 4px rgba(221, 144, 144, 0.5);
}

.clickah-beam--top    { top: 0;    left: -45%;   animation: ck-beam-h 5s var(--ck-ease) infinite; }
.clickah-beam--right  { top: -45%; right: 0;     animation: ck-beam-v 5s var(--ck-ease) infinite 1.25s; }
.clickah-beam--bottom { bottom: 0; right: -45%;  animation: ck-beam-h-rev 5s var(--ck-ease) infinite 2.5s; }
.clickah-beam--left   { bottom: -45%; left: 0;   animation: ck-beam-v-rev 5s var(--ck-ease) infinite 3.75s; }

@keyframes ck-beam-h {
	0%   { left: -45%; opacity: 0; }
	8%   { opacity: 0.9; }
	45%  { left: 100%; opacity: 0.9; }
	52%, 100% { left: 100%; opacity: 0; }
}
@keyframes ck-beam-h-rev {
	0%   { right: -45%; opacity: 0; }
	8%   { opacity: 0.9; }
	45%  { right: 100%; opacity: 0.9; }
	52%, 100% { right: 100%; opacity: 0; }
}
@keyframes ck-beam-v {
	0%   { top: -45%; opacity: 0; }
	8%   { opacity: 0.9; }
	45%  { top: 100%; opacity: 0.9; }
	52%, 100% { top: 100%; opacity: 0; }
}
@keyframes ck-beam-v-rev {
	0%   { bottom: -45%; opacity: 0; }
	8%   { opacity: 0.9; }
	45%  { bottom: 100%; opacity: 0.9; }
	52%, 100% { bottom: 100%; opacity: 0; }
}

.clickah-glow {
	position: absolute;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	filter: blur(2px);
	opacity: 0.2;
	animation: ck-glow 2.4s var(--ck-ease) infinite;
}

.clickah-glow--tl { top: -2px; left: -2px; }
.clickah-glow--tr { top: -2px; right: -2px; animation-delay: 0.6s; }
.clickah-glow--br { bottom: -2px; right: -2px; animation-delay: 1.2s; }
.clickah-glow--bl { bottom: -2px; left: -2px; animation-delay: 1.8s; }

@keyframes ck-glow {
	0%, 100% { opacity: 0.15; }
	50%      { opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}
