/* ==========================================================================
   Taller del Tiempo — Login (por Wordprecero)
   Letras pequeñas y nítidas · mobile-first
   ========================================================================== */

body.login.ttl {
	--azul: #3a5b9b;
	--azul-osc: #2f4d88;
	--noche: #0c1630;
	--noche-2: #13224a;
	--verde: #1fbf5b;
	--amarillo: #ffc107;
	--rojo: #ff0033;
	--fondo: #f6f8fc;
	--texto: #20304d;
	--suave: #2b3a55;
	--borde: #dfe5f0;
	--r: 12px;

	margin: 0;
	min-height: 100vh;
	background: var(--fondo);
	color: var(--texto);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	display: block;
}
body.login.ttl * { box-sizing: border-box; }

/* ---------- Layout ---------- */
.ttl-wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 100vh; }

/* ---------- Panel visual ---------- */
.ttl-hero {
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
	padding: 32px 44px;
	color: #fff;
	background:
		radial-gradient(900px 500px at 15% 0%, rgba(58, 91, 155, .55), transparent 60%),
		radial-gradient(700px 500px at 100% 100%, rgba(31, 191, 91, .18), transparent 60%),
		linear-gradient(160deg, var(--noche-2) 0%, var(--noche) 70%);
}
.ttl-grid {
	position: absolute; inset: 0; z-index: -1; opacity: .35;
	background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 36px 36px;
	mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.ttl-glow {
	position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%;
	left: 50%; top: 38%; transform: translate(-50%, -50%);
	background: radial-gradient(circle, rgba(91, 141, 239, .35), transparent 65%);
	filter: blur(10px); animation: ttlBreath 6s ease-in-out infinite;
}
@keyframes ttlBreath { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .75; } }

.ttl-top { display: flex; align-items: center; justify-content: space-between; }
.ttl-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.ttl-brand img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.ttl-brand-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--verde), var(--azul)); box-shadow: 0 6px 18px rgba(31, 191, 91, .35); }
.ttl-by { font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: .04em; }

.ttl-center { text-align: center; max-width: 470px; margin: 0 auto; }

/* Reloj */
.ttl-clock { position: relative; width: 250px; height: 250px; margin: 0 auto 26px; }
.ttl-clock svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 40px rgba(0,0,0,.35)); }
.ttl-c-track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 6; }
.ttl-c-prog { fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 0 100; transform: rotate(-90deg); transform-origin: 100px 100px; transition: stroke-dasharray .6s ease; }
.ttl-c-face { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.1); stroke-width: 1; }
.ttl-c-ticks line { stroke: rgba(255,255,255,.28); stroke-width: 1.4; stroke-linecap: round; }
.ttl-c-ticks line.big { stroke: rgba(255,255,255,.8); stroke-width: 2.4; }
.ttl-h-hour, .ttl-h-min, .ttl-h-sec { stroke-linecap: round; transform-origin: 100px 100px; }
.ttl-h-hour { stroke: #fff; stroke-width: 5; }
.ttl-h-min { stroke: #cfdbff; stroke-width: 3.2; }
.ttl-h-sec { stroke: var(--amarillo); stroke-width: 1.6; }
.ttl-c-dot { fill: var(--amarillo); stroke: var(--noche); stroke-width: 2; }

/* Chips flotantes */
.ttl-chip {
	position: absolute; white-space: nowrap;
	font-size: 11px; font-weight: 600; letter-spacing: .01em;
	padding: 5px 10px; border-radius: 999px;
	color: #fff; background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.16);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	animation: ttlFloat 6s ease-in-out infinite;
}
.ttl-chip.c1 { top: 6%; left: -22%; }
.ttl-chip.c2 { top: 26%; right: -34%; animation-delay: -1.2s; }
.ttl-chip.c3 { bottom: 24%; left: -36%; animation-delay: -2.4s; }
.ttl-chip.c4 { bottom: 4%; right: -22%; animation-delay: -3.6s; }
.ttl-chip.c5 { top: -6%; right: 2%; color: #1b1b1b; background: var(--amarillo); border-color: var(--amarillo); animation-delay: -4.8s; }
@keyframes ttlFloat { 50% { transform: translateY(-8px); } }

.ttl-title {
	margin: 0 0 10px; color: #fff;
	font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em;
	background: linear-gradient(90deg, #fff 30%, #b9ccff 70%, #ffe08a);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ttl-sub { margin: 0; font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.6; }

/* Tarjeta próximo taller */
.ttl-next {
	width: 100%; max-width: 470px; margin: 0 auto;
	padding: 16px 18px; border-radius: 16px;
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ttl-next-head { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.75); }
.ttl-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 0 rgba(31,191,91,.6); animation: ttlPulse 2s infinite; }
.ttl-next.is-live .ttl-live-dot { background: var(--rojo); box-shadow: 0 0 0 0 rgba(255,0,51,.6); }
.ttl-next.is-live .ttl-next-label { color: #fff; }
@keyframes ttlPulse { 70% { box-shadow: 0 0 0 9px rgba(31,191,91,0); } 100% { box-shadow: 0 0 0 0 rgba(31,191,91,0); } }

.ttl-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 10px; }
.ttl-count div { text-align: center; padding: 8px 0 6px; border-radius: 10px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.06); }
.ttl-count b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ttl-count small { font-size: 10px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; }
.ttl-next.is-live .ttl-count { display: none; }

.ttl-next-when { font-size: 12.5px; font-weight: 600; color: #fff; }
.ttl-next-when .loc { display: block; font-weight: 400; font-size: 11.5px; color: rgba(255,255,255,.6); margin-top: 2px; }
.ttl-next-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.14); font-size: 11.5px; color: rgba(255,255,255,.65); flex-wrap: wrap; }
.ttl-wa { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #25d366; color: #06301a !important; font-weight: 700; font-size: 12px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.ttl-wa:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37, 211, 102, .4); }

/* ---------- Panel del formulario ---------- */
.ttl-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--fondo); }
.ttl-panel-in { width: 100%; max-width: 380px; animation: ttlIn .5s ease both; }
@keyframes ttlIn { from { opacity: 0; transform: translateY(10px); } }

/* Pestañas */
.ttl-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 22px; background: #e9eef7; border-radius: 12px; }
.ttl-tabs a { position: relative; z-index: 1; text-align: center; padding: 8px 0; font-size: 13px; font-weight: 600; color: var(--suave); text-decoration: none; border-radius: 9px; transition: color .2s; }
.ttl-tabs a.is-on { color: var(--texto); }
.ttl-tabs a:focus { box-shadow: none; outline: 2px solid var(--azul); outline-offset: -2px; }
.ttl-tabs-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: #fff; border-radius: 9px; box-shadow: 0 1px 2px rgba(32,48,77,.08), 0 3px 10px rgba(32,48,77,.06); transition: transform .3s cubic-bezier(.3,.9,.3,1); }
.ttl-tabs-pill.right { transform: translateX(100%); }

.ttl-head { margin-bottom: 16px; }
.ttl-h1 { margin: 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -.025em; color: var(--texto); line-height: 1.25; }
.ttl-head p { margin: 0; font-size: 13px; color: var(--suave); }

/* Reset del contenedor nativo */
body.login.ttl #login { width: 100%; padding: 0; margin: 0; }
body.login.ttl #login h1.wp-login-logo,
body.login.ttl #login > h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Formulario */
body.login.ttl form {
	margin: 0; padding: 22px; border-radius: 16px;
	background: #fff; border: 1px solid #e6ebf3;
	box-shadow: 0 1px 2px rgba(32,48,77,.04), 0 12px 32px -8px rgba(32,48,77,.12);
	overflow: visible;
}
body.login.ttl #login form p:not(.submit):not(.forgetmenot),
body.login.ttl #login .user-pass-wrap { margin: 0 0 16px; }
body.login.ttl .message.register { display: none; }
body.login.ttl label { font-size: 12.5px; font-weight: 600; color: var(--texto); line-height: 1.4; margin-bottom: 6px; display: inline-block; }
body.login.ttl .ttl-hint { font-weight: 400; color: var(--suave); font-size: 11.5px; }

body.login.ttl form .input,
body.login.ttl input[type="text"],
body.login.ttl input[type="email"],
body.login.ttl input[type="password"],
body.login.ttl input[type="tel"] {
	width: 100%; height: 44px; margin: 0; padding: 0 14px;
	font-size: 14px; font-weight: 500; color: var(--texto);
	background: #f8fafd; border: 1.5px solid var(--borde); border-radius: 10px;
	box-shadow: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
body.login.ttl input::placeholder { color: #56637a; font-weight: 400; }
body.login.ttl form .input:focus,
body.login.ttl input[type="text"]:focus,
body.login.ttl input[type="email"]:focus,
body.login.ttl input[type="password"]:focus,
body.login.ttl input[type="tel"]:focus {
	outline: 0; background: #fff; border-color: var(--azul);
	box-shadow: 0 0 0 4px rgba(58, 91, 155, .14);
}
body.login.ttl .wp-pwd { position: relative; }
body.login.ttl .wp-pwd input[type="password"],
body.login.ttl .wp-pwd input[type="text"] { padding-right: 44px; }
body.login.ttl .button.wp-hide-pw { position: absolute; top: 0; right: 2px; height: 44px; width: 40px; min-height: 44px; color: var(--suave); background: none; border: 0; box-shadow: none; }
body.login.ttl .button.wp-hide-pw:hover { color: var(--azul); }
body.login.ttl .button.wp-hide-pw:focus { box-shadow: none; outline: 2px solid var(--azul); outline-offset: -4px; border-radius: 8px; }
body.login.ttl .button.wp-hide-pw .dashicons { top: 0; width: 18px; height: 18px; font-size: 18px; }

body.login.ttl #login .forgetmenot { float: none; margin: 0 0 18px; display: flex; align-items: center; gap: 8px; }
body.login.ttl .forgetmenot label { margin: 0; font-weight: 500; color: var(--suave); }
body.login.ttl input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin: 0; border: 1.5px solid var(--borde); border-radius: 5px; box-shadow: none; }
body.login.ttl input[type="checkbox"]:checked { background: var(--azul); border-color: var(--azul); }
body.login.ttl input[type="checkbox"]:checked::before { content: ""; display: block; width: 5px; height: 9px; margin: 2px 0 0 5.5px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
body.login.ttl input[type="checkbox"]:focus { box-shadow: 0 0 0 3px rgba(58,91,155,.18); outline: 0; }

body.login.ttl .submit { margin: 0; padding: 0; clear: both; }
body.login.ttl .button-primary,
body.login.ttl #wp-submit {
	float: none; width: 100%; height: 46px; min-height: 46px; padding: 0 16px;
	font-size: 14px; font-weight: 700; letter-spacing: .01em; text-shadow: none;
	color: #fff; border: 0; border-radius: 10px;
	background: linear-gradient(135deg, var(--azul) 0%, #4d74c4 100%);
	box-shadow: 0 8px 20px -6px rgba(58, 91, 155, .55), inset 0 1px 0 rgba(255,255,255,.15);
	transition: transform .15s, box-shadow .15s, filter .15s;
}
body.login.ttl .button-primary:hover,
body.login.ttl #wp-submit:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(58, 91, 155, .6); }
body.login.ttl .button-primary:active,
body.login.ttl #wp-submit:active { transform: translateY(0); }
body.login.ttl .button-primary:focus,
body.login.ttl #wp-submit:focus { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--azul); outline: 0; }

/* Registro: botón verde */
body.login.ttl #registerform #wp-submit { background: linear-gradient(135deg, #18a84f 0%, var(--verde) 100%); box-shadow: 0 8px 20px -6px rgba(31, 191, 91, .55); }
body.login.ttl #registerform #wp-submit:focus { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--verde); }
body.login.ttl #reg_passmail { font-size: 12px; color: var(--suave); background: #f3f6fb; padding: 10px 12px; border-radius: 10px; }

/* Indicador de fuerza de contraseña (restablecer) */
body.login.ttl #pass-strength-result { border-radius: 8px; font-size: 12px; font-weight: 600; margin-top: 8px; padding: 6px; }
body.login.ttl .indicator-hint, body.login.ttl .description { font-size: 12px; color: var(--suave); }
body.login.ttl .pw-weak { font-size: 12px; }
body.login.ttl .reset-pass-submit { display: flex; gap: 8px; flex-direction: column-reverse; }
body.login.ttl .reset-pass-submit .button { width: 100%; float: none; }
body.login.ttl .reset-pass-submit .button:not(.button-primary) { height: 40px; border-radius: 10px; font-size: 12.5px; color: var(--azul); border-color: var(--borde); background: #fff; }

/* Mensajes */
body.login.ttl #login_error,
body.login.ttl .message,
body.login.ttl .success,
body.login.ttl .notice {
	margin: 0 0 14px; padding: 11px 14px;
	font-size: 12.5px; line-height: 1.5;
	border: 1px solid; border-left-width: 4px; border-radius: 10px; box-shadow: none;
	background: #fff;
}
body.login.ttl #login_error, body.login.ttl .notice-error { border-color: #ffd0d8; border-left-color: var(--rojo); background: #fff5f7; color: #7a0019; }
body.login.ttl .message, body.login.ttl .notice-info { border-color: #d6e1f7; border-left-color: var(--azul); background: #f3f7ff; }
body.login.ttl .success, body.login.ttl .notice-success { border-color: #c8f0d8; border-left-color: var(--verde); background: #f1fcf5; }
body.login.ttl #login_error p, body.login.ttl .message p, body.login.ttl .notice p { margin: 0; }
body.login.ttl #login_error a { color: inherit; font-weight: 600; }

/* Enlaces inferiores */
body.login.ttl #nav,
body.login.ttl #backtoblog { margin: 14px 0 0; padding: 0; text-align: center; font-size: 12.5px; }
body.login.ttl #nav a,
body.login.ttl #backtoblog a { color: var(--azul); font-weight: 600; text-decoration: none; }
body.login.ttl #nav a:hover,
body.login.ttl #backtoblog a:hover { color: var(--azul-osc); text-decoration: underline; text-underline-offset: 2px; }
body.login.ttl #backtoblog a { color: var(--suave); font-weight: 500; }
body.login.ttl .privacy-policy-page-link { margin: 12px 0 0; text-align: center; font-size: 11.5px; }
body.login.ttl .privacy-policy-page-link a { color: var(--suave); }

/* Selector de idioma */
body.login.ttl .language-switcher { padding: 16px 0 0; }
body.login.ttl .language-switcher form { padding: 10px; background: transparent; border: 0; box-shadow: none; display: flex; gap: 6px; justify-content: center; align-items: center; }
body.login.ttl .language-switcher select { font-size: 12px; min-height: 32px; border-radius: 8px; border-color: var(--borde); }
body.login.ttl .language-switcher .button { font-size: 12px; min-height: 32px; border-radius: 8px; }
body.login.ttl .language-switcher label .dashicons { color: var(--suave); }

.ttl-legal { margin: 22px 0 0; text-align: center; font-size: 12px; color: #1f2a3d; }
.ttl-legal a { color: #1f2a3d; text-decoration: none; font-weight: 600; }
.ttl-legal a:hover { color: var(--azul); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.ttl-hero { padding: 28px 30px; }
	.ttl-chip.c2, .ttl-chip.c3 { display: none; }
}

@media (max-width: 900px) {
	.ttl-wrap { grid-template-columns: 1fr; min-height: 0; }
	.ttl-hero { padding: 16px 16px 18px; gap: 14px; border-radius: 0 0 22px 22px; }
	.ttl-glow { width: 240px; height: 240px; top: 30%; }
	.ttl-center { display: flex; gap: 14px; align-items: center; text-align: left; max-width: 520px; margin: 0; }
	.ttl-clock { flex: 0 0 64px; width: 64px; height: 64px; margin: 0; }
	.ttl-chip, .ttl-sub { display: none; }
	.ttl-title { font-size: 17px; margin: 0; }
	.ttl-next { max-width: 520px; margin: 0; padding: 11px 12px; border-radius: 14px; }
	.ttl-next-head { font-size: 10px; }
	.ttl-count { gap: 6px; margin: 8px 0; }
	.ttl-count div { padding: 5px 0 3px; border-radius: 8px; }
	.ttl-count b { font-size: 16px; }
	.ttl-count small { font-size: 8.5px; }
	.ttl-next-when { font-size: 12px; }
	.ttl-next-foot { margin-top: 8px; padding-top: 8px; }
	.ttl-next-foot > span { display: none; }
	.ttl-wa { width: 100%; justify-content: center; }
	.ttl-panel { padding: 20px 16px 28px; align-items: flex-start; }
	.ttl-panel-in { max-width: 440px; }
	.ttl-tabs { margin-bottom: 16px; }
	.ttl-h1 { font-size: 19px; }
}

@media (max-width: 380px) {
	body.login.ttl form { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
	body.login.ttl *, body.login.ttl *::before { animation: none !important; transition: none !important; }
}

/* ===== Registro 2.0: invitación, país con buscador, WhatsApp con prefijo, contraseña ===== */
body.login.ttl #registerform p:has(#user_login) { display: none !important; }
body.login.ttl #registerform #reg_passmail { display: none; }
.ttl-invito { background: linear-gradient(135deg, #1fbf5b, #17aa50); color: #111; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; box-shadow: 0 8px 20px -8px rgba(31,191,91,.6); }
.ttl-pais { position: relative; margin-bottom: 16px; }
.ttl-pais label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.ttl-pais-lista { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; margin: 4px 0 0; padding: 6px; list-style: none; background: #fff; border-radius: 12px; box-shadow: 0 16px 36px rgba(32,48,77,.22); max-height: 260px; overflow-y: auto; border: 1px solid #e2e6ed; }
.ttl-pais-lista li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.ttl-pais-lista li span { font-size: 18px; }
.ttl-pais-lista li em { margin-left: auto; font-style: normal; color: #5f7091; font-size: 12.5px; }
.ttl-pais-lista li.on, .ttl-pais-lista li:hover { background: #eaf0ff; }
.ttl-pais-lista li.vacio { color: #5f7091; cursor: default; }
.ttl-tel { display: flex; align-items: stretch; }
.ttl-prefijo { display: flex; align-items: center; padding: 0 12px; background: #eaf0ff; color: #3a5b9b; font-weight: 800; border: 1.5px solid #d7deeb; border-right: 0; border-radius: 12px 0 0 12px; font-size: 15px; }
body.login.ttl .ttl-tel .input { border-radius: 0 12px 12px 0 !important; margin: 0 !important; }
.ttl-clave { position: relative; display: block; }
.ttl-ver-clave { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: 18px; padding: 4px; }
body.login.ttl .ttl-clave .input { padding-right: 44px !important; }

/* Franja superior: Ingreso de alumnos */
.ttl-alumnos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 16px; padding: 10px 16px; background: #3a5b9b; color: #fff; font-size: 14px; line-height: 1.4; text-align: center; }
.ttl-alumnos-txt { color: #fff; }
.ttl-alumnos-btn { display: inline-block; background: #ffe58a; color: #111 !important; border: 2px solid #f0c419; border-radius: 10px; padding: 7px 16px; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.ttl-alumnos-btn:hover, .ttl-alumnos-btn:focus { background: #ffd95a; color: #111 !important; }
@media (min-width: 901px) { .ttl-alumnos + .ttl-wrap { min-height: calc(100vh - 58px); } }
@media (max-width: 600px) {
	.ttl-alumnos { font-size: 13px; padding: 10px 12px; }
	.ttl-alumnos-btn { width: 100%; max-width: 320px; padding: 10px 16px; font-size: 15px; }
}
