/* TuaLua 17: login y creación de perfil (login.html, perfil.html,
   perfil_parte2.html). Propuesta Claude Code. Las tres comparten
   .container > .center > form.login-form; aquí se reemplaza el fondo gris
   texturizado por la superficie de marca y se igualan campos y botones. */

html, body {
  font-family: var(--fuente) !important;
  background: var(--bg) !important;
  color: var(--text);
}
body .center {
  background: var(--bg) !important;
  padding: calc(24px + var(--seguro-arriba)) 16px calc(24px + var(--seguro-abajo)) !important;
  box-sizing: border-box;
}
body .login-form {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto;
  padding: 28px 22px;
  border-radius: var(--radio-l);
  background: var(--bg2) !important;
  border: 1px solid var(--linea);
  box-sizing: border-box;
  color: var(--text);
}
body .login-form > br,
body .login-form br { display: none; }
.tl-acceso-logo { display: block; width: 140px; height: auto; margin: 0 auto 4px; }
body .login-form h2 {
  margin: 0 0 8px;
  font-family: var(--fuente-titulo);
  font-weight: 600;
  font-size: 1.6rem;
  text-align: center;
  color: var(--text);
}
body .login-form label {
  display: block;
  margin: 6px 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
body .login-form input[type="text"],
body .login-form input[type="email"],
body .login-form input[type="password"],
body .login-form select {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--linea-fuerte);
  background: var(--bg);
  color: var(--text);
  font-family: var(--fuente);
  font-size: 16px; /* evita el zoom de iOS al enfocar */
  box-sizing: border-box;
}
body .login-form input:focus,
body .login-form select:focus { outline: none; border-color: var(--teal); }
body .login-form input::placeholder { color: var(--muted); }
body .login-form input[type="submit"] {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: var(--radio-m);
  background: var(--teal);
  color: var(--bg);
  font: 600 1rem var(--fuente);
  cursor: pointer;
}
body .login-with-google-btn {
  width: 100%;
  min-height: 48px;
  border-radius: var(--radio-m) !important;
  font-family: var(--fuente);
  font-size: 1rem;
}
body .social-buttons { display: flex; flex-direction: column; gap: 10px; }
body .separator { margin: 4px 0; }
body .separator .circle { color: var(--muted); }
body .separator .line { background: var(--linea-fuerte); }
body .additional-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.9rem;
}
body .additional-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--teal);
  text-decoration: none;
}
body .login-form a:focus-visible,
body .login-form button:focus-visible,
body .login-form input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Carrusel de avatares (perfil.html) */
body .carousel-container img { border-radius: var(--radio-m); }
body .carousel-container .prev,
body .carousel-container .next {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 20, 21, 0.75);
  color: var(--text);
}

/* Sin scroll horizontal a 360-390 px: el carrusel no puede ensanchar el form */
body .center { min-width: 0; max-width: 100%; }
body .login-form { min-width: 0; max-width: 100%; }
body .carousel-container,
body .image-container { max-width: 100%; overflow: hidden; }

/* El PNG del logo trae fondo oscuro: sobre la tarjeta se funde con ella */
.tl-acceso-logo { mix-blend-mode: lighten; }
body .login-form label:empty { display: none; }
body .login-form p { margin: 4px 0 0; color: var(--text) !important; }

/* Selector de idioma (perfil_parte2.html) */
body .custom-select-trigger {
  min-height: 48px;
  padding: 0 14px !important;
  border-radius: 12px !important;
  border: 1px solid var(--linea-fuerte) !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-size: 1rem;
  box-sizing: border-box;
}
body .custom-options {
  border-radius: 12px !important;
  border: 1px solid var(--linea-fuerte) !important;
  background: var(--bg2) !important;
  overflow: hidden;
  /* La lista se abre en el flujo, no flotando: .image-container lleva
     overflow:hidden (sin scroll horizontal) y recortaba la lista absoluta,
     así que al tocar no aparecía nada. */
  position: static !important;
  display: none;
  max-height: none;
  margin-top: 6px;
}
body .custom-options.open { display: block; }
body .custom-option { min-height: 44px; color: var(--text) !important; }
