/* ================================================================
   InnerLab — pantallas de acceso de WordPress
   (login, recuperación y restablecimiento de contraseña, registro)

   Los valores replican los tokens de theme.json / style.css; van
   escritos a mano porque wp-login.php carga antes de que exista la
   hoja del tema:
     marfil    #F4F3F1   blanco   #FFFFFF
     contraste #00243D   primario #7A93AC
     celeste   #C5D6EA   arena    #C2B8AD
   ================================================================ */

/* ---- Tipografías de marca (locales, del tema) ------------------ */
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/figtree.woff2") format("woff2");
}

@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/cormorant-garamond.woff2") format("woff2");
}

/* ---- Fondo y centrado vertical --------------------------------- */
html,
body.login {
	height: 100%;
}

body.login {
	background: linear-gradient(180deg, #f4f3f1 0%, #e3eaf3 100%);
	font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #00243d;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	/* En viewports bajos, evitar que el centrado recorte el logo por
	   arriba (los navegadores sin `safe` conservan el centrado normal). */
	justify-content: safe center;
	padding: 24px 16px;
	box-sizing: border-box;
}

/* ---- Contenedor ------------------------------------------------- */

/* Columna flex para poder mover .il-login-header visualmente antes
   del <h1> oculto (que aparece primero en el DOM). */
#login {
	width: 380px;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
}

/* Ocultar el logo por defecto de WordPress */
#login h1 {
	display: none;
}

/* ---- Cabecera de marca (logo vertical) -------------------------- */
.il-login-header {
	order: -1; /* visualmente primero aunque el DOM lo ponga después del h1 */
	text-align: center;
	margin-bottom: 26px;
}

.il-login-header img {
	display: block;
	width: 180px;
	height: auto;
	margin: 0 auto;
}

/* ---- Formularios como tarjeta ----------------------------------- */
#login #loginform,
#login #lostpasswordform,
#login #resetpassform,
#login #registerform {
	background: #ffffff;
	border: 1px solid rgba(194, 184, 173, 0.55);
	border-radius: 12px;
	box-shadow: 0 18px 40px -24px rgba(0, 36, 61, 0.35);
	padding: 34px 34px 28px;
	margin: 0;
}

/* Enlaces bajo la tarjeta */
#login #nav,
#login #backtoblog {
	margin-top: 16px;
	text-align: center;
	padding: 0;
}

/* ---- Etiquetas --------------------------------------------------- */
.login label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #00243d;
	letter-spacing: 0.02em;
	margin-bottom: 4px;
	display: block;
}

/* ---- Campos de texto y contraseña -------------------------------- */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	font-family: "Figtree", -apple-system, sans-serif;
	font-size: 1rem;
	color: #00243d;
	background: #ffffff;
	border: 1px solid rgba(194, 184, 173, 0.7);
	border-radius: 6px;
	padding: 0.7rem 0.9rem;
	width: 100%;
	box-sizing: border-box;
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
	border-color: #7a93ac;
	box-shadow: 0 0 0 3px rgba(197, 214, 234, 0.55);
	outline: none;
}

/* Botón de mostrar/ocultar contraseña */
.login .button.wp-hide-pw {
	color: #7a93ac;
}

.login .button.wp-hide-pw:focus {
	border-color: #7a93ac;
	box-shadow: 0 0 0 3px rgba(197, 214, 234, 0.55);
	outline: none;
}

/* Casilla «Recuérdame» */
.login input[type="checkbox"] {
	border: 1px solid rgba(194, 184, 173, 0.9);
	border-radius: 4px;
	box-shadow: none;
}

.login input[type="checkbox"]:focus {
	border-color: #7a93ac;
	box-shadow: 0 0 0 3px rgba(197, 214, 234, 0.55);
	outline: none;
}

.login input[type="checkbox"]:checked {
	background: #00243d;
	border-color: #00243d;
}

.login input[type="checkbox"]:checked::before {
	filter: brightness(0) invert(1);
}

.login .forgetmenot label {
	font-weight: 400;
	font-size: 0.9rem;
	display: inline;
}

/* ---- Botón principal (píldora de marca) --------------------------- */
.login .submit {
	margin-top: 18px;
}

#wp-submit {
	background: #00243d;
	border: 1px solid #00243d;
	border-radius: 999px;
	font-family: "Figtree", -apple-system, sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: #f4f3f1;
	padding: 0.8rem 2.2rem;
	width: 100%;
	height: auto;
	cursor: pointer;
	box-shadow: none;
	transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

#wp-submit:hover {
	background: #7a93ac;
	border-color: #7a93ac;
	color: #ffffff;
}

#wp-submit:focus {
	background: #7a93ac;
	border-color: #7a93ac;
	color: #ffffff;
	box-shadow: 0 0 0 3px rgba(197, 214, 234, 0.7);
	outline: none;
}

/* ---- Enlaces de navegación ---------------------------------------- */
.login #nav a,
.login #backtoblog a,
.login .privacy-policy-page-link a {
	font-family: "Figtree", -apple-system, sans-serif;
	font-size: 0.85rem;
	color: #00243d;
	text-decoration: none;
	transition: color 0.2s ease;
}

.login #nav a:hover,
.login #backtoblog a:hover,
.login .privacy-policy-page-link a:hover {
	color: #7a93ac;
	text-decoration: underline;
}

/* ---- Mensajes de error e información -------------------------------- */
.login #login_error,
.login .notice-error {
	background: #fdf3f2;
	border: 0;
	border-left: 4px solid #a4262c;
	border-radius: 0 6px 6px 0;
	color: #7c1d22;
	font-size: 0.9rem;
	padding: 0.9rem 1.2rem;
	margin: 0 0 16px;
	box-shadow: none;
}

.login .message,
.login .success,
.login .notice-info {
	background: #ffffff;
	border: 0;
	border-left: 4px solid #7a93ac;
	border-radius: 0 6px 6px 0;
	color: #00243d;
	font-size: 0.9rem;
	padding: 0.9rem 1.2rem;
	margin: 0 0 16px;
	box-shadow: 0 8px 30px -18px rgba(0, 36, 61, 0.4);
}

.login #login_error a,
.login .message a,
.login .success a {
	color: #00243d;
	font-weight: 600;
}

/* Indicador de seguridad de la contraseña (resetpass) */
.login #pass-strength-result {
	border-radius: 6px;
	font-family: "Figtree", -apple-system, sans-serif;
}

/* ---- Selector de idioma y pie ---------------------------------------- */
.login .language-switcher {
	margin-top: 16px;
	text-align: center;
}

.login .language-switcher .button {
	border-radius: 999px;
	border-color: rgba(194, 184, 173, 0.7);
	color: #00243d;
	background: #ffffff;
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 420px) {
	#login {
		width: 100%;
	}

	#login #loginform,
	#login #lostpasswordform,
	#login #resetpassform,
	#login #registerform {
		padding: 26px 22px 22px;
	}

	.il-login-header img {
		width: 150px;
	}
}
